Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-02 23:59:03.170230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1277215480804443 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-02 23:59:12.543010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2221879959106445 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-02 23:59:22.116429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2149217128753662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-02 23:59:32.296416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f6e7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3151488304138184 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-02 23:59:42.153807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.300926685333252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:00:02.588756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575db0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 0.8710739612579346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:00:12.334323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.186631202697754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:00:22.279043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:00:32.313104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3241322040557861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:00:42.375151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3127524852752686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:01:03.163908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:01:12.479830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1999797821044922 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:01:22.564572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:01:32.587502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55300b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3000051975250244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:01:42.706712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3094980716705322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:02:02.272594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:02:11.823642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1920263767242432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:02:21.964971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:02:31.898770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2975950241088867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:02:41.904448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3199732303619385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:03:02.707648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5502910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:03:12.006030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1846778392791748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:03:22.102319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:03:32.081628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2951741218566895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:03:42.095943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.302499771118164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:04:03.005858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:04:12.209530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5488030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.193333625793457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:04:22.325681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:04:32.288284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2936146259307861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:04:42.278904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3235952854156494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:05:03.109847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:05:12.377741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5479030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2033233642578125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:05:22.421290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:05:32.441067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2814381122589111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:05:42.456106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3164398670196533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:06:02.922141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:06:12.530161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1972575187683105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:06:22.583553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5599970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:06:32.637690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3038244247436523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:06:42.617184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3058395385742188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:07:03.359384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:07:12.780557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.198082685470581 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:07:22.811789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:07:32.749154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2977962493896484 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:07:42.773641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3139722347259521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:08:02.405163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5501a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:08:12.002114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1961641311645508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:08:22.008813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:08:32.010582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fbff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2895522117614746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:08:41.946831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3197741508483887 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:09:02.781928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:09:13.413126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1916122436523438 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:09:22.235026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:09:32.147446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 12.55249547958374 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:10:03.028426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:10:12.573523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552eef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1927440166473389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:10:22.578681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55439d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:10:32.677498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f978d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2933845520019531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:10:42.627226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5488030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.311584234237671 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:11:03.231216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:11:14.094655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1888234615325928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:11:22.894475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5561970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:11:32.819448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2844500541687012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:11:42.776616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3081979751586914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:12:02.389099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55449b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55449b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55449b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:12:11.876506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1902151107788086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:12:21.959394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5589950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:12:31.901802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.296518325805664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:12:42.009160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3053538799285889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:13:02.754325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55468f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55468f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55468f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:13:12.087124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1867170333862305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:13:22.247714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6190790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6190790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6190790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:13:32.179898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3076200485229492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:13:42.182828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3292298316955566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:14:02.993897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:14:12.351300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1892921924591064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:14:22.378762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:14:34.281654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3022589683532715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:14:42.372059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3095383644104004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:15:03.203442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:15:12.450047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1964111328125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:15:22.597456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:15:32.523220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.280318260192871 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:15:42.587711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3205630779266357 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:16:03.158873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:16:12.714051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1916470527648926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:16:22.700044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:16:32.764698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2895278930664062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:16:42.722004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3267021179199219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:17:02.530899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55118d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55118d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55118d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:17:11.841663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.183596134185791 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:17:21.888243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:17:31.901531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2911381721496582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:17:41.959845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.333648920059204 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:18:02.439792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:18:12.082203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1941499710083008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:18:22.115409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb654af90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb654af90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb654af90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:18:32.173016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2849133014678955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:18:42.160284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3291988372802734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:19:03.227043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55778f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55778f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55778f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:19:12.314336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1986732482910156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:19:22.362394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:19:32.339161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2847282886505127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:19:42.369607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3024358749389648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:20:02.976981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:20:12.557738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1828677654266357 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:20:22.645599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:20:32.564850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555def0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.289212703704834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:20:42.612020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.322751760482788 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:21:03.379290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54be950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:21:12.751167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1930737495422363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:21:22.782886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:21:32.839214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2939269542694092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:21:42.843260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3041870594024658 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:22:02.386702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:22:11.984407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1794540882110596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:22:21.952027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:22:31.955536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cbfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3037121295928955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:22:42.081940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3121230602264404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:23:02.866361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:23:12.232290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.180389404296875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:23:22.326067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:23:32.234673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2953376770019531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:23:48.504581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2197411060333252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:24:03.391921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:24:12.633985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1841676235198975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:24:22.699615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:24:32.697789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2993383407592773 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:24:42.677795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3285222053527832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:25:02.558414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5555950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:25:11.832807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1944034099578857 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:25:21.808669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:25:31.839068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2897541522979736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:25:41.824382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3038432598114014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:26:02.349581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:26:11.941874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2042405605316162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:26:21.951000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:26:32.011404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2877330780029297 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:26:42.023258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3240463733673096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:27:02.757360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:27:12.216127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1896851062774658 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:27:22.170662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:27:32.192879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.286329984664917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:27:42.184502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3038649559020996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:28:02.852449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:28:12.315411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1847782135009766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:28:22.312137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:28:32.373193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.320096731185913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:28:42.425729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3277804851531982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:29:03.333389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:29:12.566378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.2020390033721924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:29:22.863299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:29:32.624114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.512369155883789 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:29:42.651189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5157530307769775 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:30:03.159738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:30:12.803973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2076690196990967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:30:22.823900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:30:32.825139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5089373588562012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:30:42.923717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5281963348388672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:31:02.692553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:31:12.942664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1930389404296875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:31:24.408955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5596910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:31:32.111249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5071394443511963 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:31:42.155248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5458030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.531247854232788 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:32:02.799969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:32:12.349431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.192631721496582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:32:22.347890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:32:32.404604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.484825849533081 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:32:42.339530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5339062213897705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:33:03.077207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5562910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:33:12.441600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5491030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1828744411468506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:33:22.543702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:33:32.523370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5657556056976318 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:33:42.515796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6008687019348145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:34:03.437064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:34:12.763479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4513330459594727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:34:22.800804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:34:32.819619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5053138732910156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:34:42.773426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5304086208343506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:35:02.605145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:35:11.922498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2615211009979248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:35:22.017575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:35:31.922738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5575988292694092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:35:41.941630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6213829517364502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:36:02.562710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:36:12.063836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.205030918121338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:36:22.101234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bdab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bdab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bdab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:36:32.130060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.578434944152832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:36:42.097614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5948309898376465 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:37:02.879013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5bbb870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bbb870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bbb870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:37:12.192880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.194453239440918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:37:22.239595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:37:32.371459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5776374340057373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:37:42.339739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6082592010498047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:38:02.940069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:38:12.574807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2270402908325195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:38:22.595359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:38:32.533535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5631499290466309 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:38:42.515857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6203997135162354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:39:03.573376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:39:12.654772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.430907964706421 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:39:24.488965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:39:32.702061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.489502191543579 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:39:42.706264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5168547630310059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:40:04.028348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:40:13.561023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2036159038543701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:40:23.530438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:40:33.557422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5701773166656494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:40:43.554906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5982162952423096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:41:03.346753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:41:12.664536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2019932270050049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:41:22.707290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:41:32.836145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5712475776672363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:41:42.716264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5808508396148682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:42:02.388925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:42:11.823421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2036583423614502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:42:21.889805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:42:31.894910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.567737340927124 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:42:41.981174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600372552871704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:43:02.718821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:43:12.085918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2039940357208252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:43:22.126026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:43:32.287763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5628671646118164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:43:42.284065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5861079692840576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:44:03.171716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:44:12.407019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4530632495880127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:44:22.454994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:44:32.466498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565178632736206 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:44:42.466804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.7487058639526367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:45:03.260368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:45:12.575141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2295267581939697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:45:22.614131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:45:32.782050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5969996452331543 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:45:42.771838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6027100086212158 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:46:02.431403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:46:11.863342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6f30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2010557651519775 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:46:21.932498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55998b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:46:31.905513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5643784999847412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:46:41.970226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5930736064910889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:47:02.654519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:47:12.105195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aefd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2060468196868896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:47:22.139261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:47:32.153872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5643186569213867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:47:42.234719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6086761951446533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:48:02.892865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:48:12.345735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2000775337219238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:48:22.354591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:48:32.520117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ff90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.559844970703125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:48:42.405885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5864615440368652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:49:03.521430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:49:12.538125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4441347122192383 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:49:22.578491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:49:32.554985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.511186122894287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:49:42.575091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5291574001312256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:50:03.180955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55939b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:50:12.679118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.189697504043579 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:50:22.723325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:50:32.750683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5872886180877686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:50:42.764377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5477030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6016032695770264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:51:02.666108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:51:11.915977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55237b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.305715560913086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:51:21.953155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:51:31.990945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5494030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5660943984985352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:51:41.962864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.593207597732544 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:52:02.535227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:52:12.027268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.192194938659668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:52:22.135819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:52:32.202435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5636768341064453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:52:42.141030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605177879333496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:53:02.896693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5ddb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ddb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ddb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:53:12.350619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1950719356536865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:53:22.303999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:53:32.303518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5550146102905273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:53:42.304900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5871915817260742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:54:03.172122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:54:12.462463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5480030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.459165096282959 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:54:22.500870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:54:32.519374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5834579467773438 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:54:42.479703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5874178409576416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:55:03.367730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:55:12.645411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2693960666656494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:55:22.677702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:55:32.646347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.556760311126709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:55:42.699918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6014518737792969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:56:02.405530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:56:11.808860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.203050136566162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:56:21.858294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:56:31.944644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5667221546173096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:56:41.995134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5834393501281738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:57:02.683378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:57:12.172966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554cfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1997008323669434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:57:22.260434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:57:32.156715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f68e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.563276767730713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:57:42.205643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb620d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6005618572235107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 00:59:03.429477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:59:12.549322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451448678970337 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 00:59:22.681329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 00:59:32.591281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5334482192993164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 00:59:42.580827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.3195719718933105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:00:03.687607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:00:13.232280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1990182399749756 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:00:23.330640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5515a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:00:33.253266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.56903076171875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:00:43.415109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6140904426574707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:01:03.158466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:01:12.485748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1937973499298096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:01:22.712826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:01:32.588048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f2e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5710992813110352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:01:52.048669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ad070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4699716567993164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:02:02.748313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:02:12.243167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1976065635681152 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:02:22.314318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:02:32.304056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.569200038909912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:02:43.584375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5456030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.589933156967163 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:03:03.347809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:03:12.675295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.203981876373291 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:03:22.744685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:03:32.899969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.560257911682129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:03:42.936896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6089370250701904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:04:02.797911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:04:12.070074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4566617012023926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:04:22.096031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:04:32.163465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.491762638092041 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:04:42.082256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5189073085784912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:05:02.925722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:05:12.233078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3289835453033447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:05:22.266590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:05:32.387104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5744690895080566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:05:44.587844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.590796709060669 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:06:03.227301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:06:12.650310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2015068531036377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:06:26.589052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:06:33.919857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fbfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5558207035064697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:06:42.763761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5983777046203613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:07:02.643922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:07:11.854563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.187300205230713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:07:21.930597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:07:32.017776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.556368112564087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:07:52.218526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4740478992462158 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:08:02.940247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:08:12.450570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2026803493499756 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:08:22.452393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:08:38.755620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.562687635421753 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:08:42.464314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.112459897994995 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:09:03.526940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:09:12.618924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.441598653793335 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:09:22.611615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:09:32.656712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5210983753204346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:09:42.674807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5465953350067139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:10:03.088165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:10:12.807899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2087247371673584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:10:22.981664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:10:32.838172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5536794662475586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:10:42.848718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5927343368530273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:11:02.818869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:11:12.061383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4488193988800049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:11:22.027500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:11:32.068409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5726535320281982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:11:42.016569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594904899597168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:12:02.582173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:12:12.184207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2133986949920654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:12:22.115323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:12:32.206865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5616228580474854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:12:42.183373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5921640396118164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:13:07.348047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:13:13.696517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4452507495880127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:13:22.291468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:13:32.248374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4539377689361572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:13:42.226560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a76d30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.9286391735076904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:14:03.222416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:14:12.482939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447035312652588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:14:22.443803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:14:32.490007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb624f770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4962387084960938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:14:42.696617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5261766910552979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:15:02.495582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55928b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55928b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55928b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:15:11.795280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2201333045959473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:15:21.973078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:15:38.829321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5487030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2517759799957275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:15:41.881476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6070852279663086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:16:02.564397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fbb2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fbb2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fbb2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:16:12.015104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2179396152496338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:16:22.039202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:16:32.282744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5742383003234863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:16:42.102046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5985915660858154 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:17:02.908710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:17:12.228018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2022180557250977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:17:22.260929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:17:32.294208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572934865951538 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:17:42.275526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6187782287597656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:18:02.908875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55288b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55288b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55288b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:18:12.381392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2202470302581787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:18:22.439747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:18:32.450728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565911054611206 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:18:42.461558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5931446552276611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:19:03.494898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:19:12.687747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5e139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448072910308838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:19:22.670888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:19:32.617765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5639917850494385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:19:42.635499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.616847038269043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:20:03.213335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:20:12.812232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2041029930114746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:20:22.811295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:20:32.793942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5587117671966553 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:20:42.808486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5983576774597168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:21:02.728713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:21:11.990987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554de50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4464671611785889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:21:22.018526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:21:32.016390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5624682903289795 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:21:42.002865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5877511501312256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:22:03.012300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:22:12.527814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1978261470794678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:22:22.637794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:22:32.575551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5695924758911133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:22:42.683333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.584099531173706 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:23:02.476140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:23:11.816029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1993930339813232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:23:21.798079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:23:31.849689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55670f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5722107887268066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:23:41.853859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.589125394821167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:24:02.713276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:24:11.984437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2000503540039062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:24:22.016611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:24:32.070107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54baff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5799458026885986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:24:42.042184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64bcf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.587188482284546 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:25:02.846823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5595910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:25:12.161355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.0558929443359375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:25:22.490688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:25:32.210982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:25:43.357518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5798563957214355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:26:02.895678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:26:12.534998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4594488143920898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:26:22.438756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:26:36.197644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb650dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.332897424697876 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:26:42.505270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551cb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.482635498046875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:27:03.365013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:27:12.745801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64e8f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.9707319736480713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:27:24.301125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:27:33.497068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ab7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5623128414154053 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:27:42.774155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5480030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.578852653503418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:28:02.300450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:28:13.081596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4543612003326416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:28:25.182870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:28:31.901509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4449412822723389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:28:41.883981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4780309200286865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:29:03.041307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:29:12.250647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.259913444519043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
 val : 1 : upload photos already in processing! 
2025-12-03 01:29:30.586702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:29:42.145932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594393014907837 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:30:02.681726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:30:12.196860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1935906410217285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:30:22.244032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55109d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55109d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55109d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:30:32.836374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.55372953414917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:30:42.355577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6011981964111328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:31:03.098392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:31:12.471719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2010064125061035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:31:22.531749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:31:32.515336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5644598007202148 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:31:42.540317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5940275192260742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:32:03.167929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:32:12.669024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1980128288269043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:32:24.729123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:32:32.730446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5713496208190918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:32:42.723279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.590104341506958 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:33:02.540170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:33:11.779977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.43778395652771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:33:21.970874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:33:31.889064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5733757019042969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:33:41.870465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5950720310211182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:34:02.792848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:34:12.030267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.45912504196167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:34:22.073589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5504150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:34:32.043775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5019774436950684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:34:42.029679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.527663230895996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:35:02.960584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:35:12.178004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4077985286712646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:35:22.202214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:35:32.207329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5545415878295898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:35:42.360737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599043607711792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:36:02.953808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:36:12.452785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2049429416656494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:36:22.500380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:36:32.635380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5770807266235352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:36:42.628370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aff90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7068555355072021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:37:03.532319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55579d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55579d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55579d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:37:12.888187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3413052558898926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:37:22.925223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:37:32.788001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5869591236114502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:37:42.775561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6029727458953857 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:38:02.451006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:38:11.865023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.193809986114502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:38:22.017892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:38:31.921038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.560791015625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:38:41.916939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5769412517547607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:39:03.151694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:39:12.093141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f879b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4604253768920898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:39:22.088570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:39:32.201253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5228800773620605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:39:42.094908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5287299156188965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:40:02.660047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:40:12.326193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4409067630767822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:40:22.229284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:40:32.397485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5768013000488281 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:40:42.403998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5978808403015137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:41:03.219039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5547850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:41:12.516419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54caff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4593353271484375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:41:22.623844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:41:32.547668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5697383880615234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:41:42.600927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5945546627044678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:42:03.242737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:42:12.731046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4597694873809814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:42:22.758079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:42:32.780454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5483030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6105945110321045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:42:42.797974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6632170677185059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:43:02.598519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:43:11.958823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4370942115783691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:43:21.939909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:43:31.962101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5769555568695068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:43:41.952898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6141555309295654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:44:02.934249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:44:12.184245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4544997215270996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:44:22.138063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:44:32.140050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.561483383178711 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:44:42.148444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5990173816680908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:45:02.894973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:45:12.252407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4329793453216553 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:45:22.296958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5dca950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5dca950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5dca950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:45:32.311230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5778281688690186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:45:42.984909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5970933437347412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:46:02.755570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:46:12.231013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4485523700714111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:46:22.164157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55439f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:46:32.233860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55100b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5617504119873047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:46:42.236822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5491030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.938086748123169 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:47:02.964543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:47:12.412286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ae070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.102839231491089 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:47:22.344485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:47:35.025132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4582452774047852 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:47:43.920294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556eb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6054620742797852 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:48:02.488979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:48:12.123660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5818402767181396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:48:21.970399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:48:32.010973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4546098709106445 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:48:41.989456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4831418991088867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:49:03.012715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:49:12.181292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4583969116210938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:49:22.220767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:49:32.210080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5805602073669434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:49:42.235502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6018502712249756 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:50:02.910439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:50:12.361988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4576210975646973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:50:22.391866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:50:32.444371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5951101779937744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:50:42.465080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5862867832183838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:51:03.232237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:51:14.346095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4446582794189453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:51:22.570361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5547930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:51:32.611733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6113026142120361 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:51:42.640402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55450d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5990774631500244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:52:03.203757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:52:12.781499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4458835124969482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:52:22.811339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:52:32.860359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5866756439208984 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:52:42.814072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.597355604171753 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:53:02.611535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:53:11.934441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4494898319244385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:53:21.907069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:53:31.959963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5709354877471924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:53:44.363196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.591113805770874 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:54:03.203504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:54:12.478815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4508838653564453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:54:22.554187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:54:32.597566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5948588848114014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:54:42.523040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6208524703979492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:55:04.942629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:55:12.696324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5469030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8760247230529785 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:55:22.624774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:55:32.631521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 291, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:55:42.693986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6028690338134766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:56:02.285692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:56:11.853758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5870752334594727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:56:21.920497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:56:31.803299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 7.219705104827881 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:56:41.790102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4667530059814453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:57:02.713079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:57:12.112070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.778557062149048 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:57:25.855953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:57:32.057886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.332549810409546 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:57:42.060357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5986411571502686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 01:59:03.615082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:59:12.642743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f70630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4487345218658447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 01:59:22.632887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 01:59:32.624819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5745859146118164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 01:59:42.613550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5883264541625977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:00:03.213417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa96d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:00:12.717653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4541270732879639 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:00:22.866040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:00:32.778170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.558283805847168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:00:42.778505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.60400390625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:01:02.733799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:01:11.952756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4357006549835205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:01:21.935847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:01:31.955497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b5dbd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 12.079943895339966 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:02:04.834373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:02:12.920638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4459025859832764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:02:22.914361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:02:37.026097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5756733417510986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:02:42.858077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5478030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5939507484436035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:03:03.733712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:03:12.118041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4406466484069824 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:03:22.008674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5aa2cb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5aa2cb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5aa2cb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:03:32.006944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5815951824188232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:03:42.018070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.611947774887085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:04:02.800931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:04:12.127052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4532859325408936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:04:22.219679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:04:32.207112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5828948020935059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:04:42.222145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5965666770935059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:05:06.206671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55259b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55259b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55259b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:05:13.469580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4415996074676514 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:05:23.447357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:05:33.445887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5567903518676758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:05:43.451891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598881721496582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:06:03.080204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:06:12.760298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4557080268859863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:06:25.051992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5515970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:06:32.620333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5793838500976562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:06:42.625534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6182935237884521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:07:03.402611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:07:12.812464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4548916816711426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:07:22.792505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55659d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55659d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55659d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:07:32.793025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5591826438903809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:07:42.807454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6093997955322266 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:08:02.391553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:08:11.907768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4639103412628174 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:08:22.061015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55709b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:08:32.052762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5867445468902588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:08:42.096920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5768494606018066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:09:03.309696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:09:12.195308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4672033786773682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:09:22.268280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55069b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:09:32.288362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5990571975708008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:09:42.238058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5996544361114502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:10:02.845685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:10:12.325995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451993703842163 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:10:22.398174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:10:32.442960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572782039642334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:10:42.410131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5490030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594470739364624 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:11:03.215342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:11:12.533115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4428491592407227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:11:22.597705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5524a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:11:32.582835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.581758975982666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:11:42.609354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.597804069519043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:12:03.234467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:12:12.733187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5448030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4383797645568848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:12:22.755898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:12:32.798386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.575812578201294 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:12:42.871286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 14.129732131958008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:13:02.637627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:13:11.989023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.460266351699829 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:13:22.035561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:13:32.048770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5751583576202393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:13:42.059980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5860426425933838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:14:02.872046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:14:12.227572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4373598098754883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:14:22.206917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb65c6590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb65c6590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb65c6590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:14:32.297223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5613963603973389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:14:44.418725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6803784370422363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:15:03.326110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:15:15.500568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552df30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.452132225036621 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:15:24.819680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55949f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55949f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55949f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:15:32.626068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557db30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.375458002090454 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:15:42.647028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.612579107284546 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:16:06.787099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:16:14.013908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.128849744796753 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:16:24.094830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:16:34.093961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.9158012866973877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:16:44.148009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5902793407440186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:17:02.950549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:17:12.264169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4761085510253906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:17:22.259982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:17:32.260491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4566564559936523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:17:42.270667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4805331230163574 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:18:03.046856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:18:12.474444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4388396739959717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:18:22.571960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55888f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55888f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55888f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:18:32.530756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5630271434783936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:18:42.561513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5884227752685547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:19:03.690282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:19:12.667132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457848072052002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:19:22.697569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:19:32.735854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5798113346099854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:19:42.714301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c60d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6018338203430176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:20:02.421582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:20:11.853495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.442514419555664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:20:22.045753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:20:31.880174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ff90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5638093948364258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:20:41.901108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55490b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6079847812652588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:21:02.722801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:21:12.102326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4413585662841797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:21:22.099980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:21:32.114254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5777733325958252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:21:42.055996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5905156135559082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:22:02.714233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:22:12.186778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3711211681365967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:22:22.216699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:22:32.425258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.582214593887329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:22:42.426800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5921580791473389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:23:03.029962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:23:12.505585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2348849773406982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:23:22.675837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:23:32.572767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5575430393218994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:23:42.601017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5468030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5994582176208496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:24:03.425418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:24:12.714667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4452226161956787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:24:23.265796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:24:32.864876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5883207321166992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:24:42.815928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6530f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6098198890686035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:25:02.499567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:25:12.807368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5495030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2856018543243408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:25:21.929422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:25:32.053162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5635528564453125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:25:42.023387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5973119735717773 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:26:02.593822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:26:12.167953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3801860809326172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:26:22.197280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:26:32.205537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572728157043457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:26:42.226783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.629143238067627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:27:02.980044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:27:14.694194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3135478496551514 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:27:23.661204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:27:32.402442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5623822212219238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:27:49.394900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6114325523376465 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:28:03.065091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:28:12.565874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2035465240478516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:28:22.561960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:28:32.564372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5680155754089355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:28:42.569356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55990d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5975337028503418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:29:03.676893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:29:12.719554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4399299621582031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:29:22.785838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:29:32.766025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f57790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5719034671783447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:29:42.768993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5925264358520508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:30:02.419563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:30:11.926311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ce70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2077951431274414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:30:21.935061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:30:31.945594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5512919425964355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:30:41.937887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6112453937530518 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:31:02.712270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:31:12.116740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2840440273284912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:31:22.143621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:31:32.096646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5642821788787842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:31:42.080279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6012036800384521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:32:02.791567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:32:12.249361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2031495571136475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:32:22.252821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:32:32.221556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.557718276977539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:32:42.280699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5895683765411377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:33:03.094260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:33:12.475786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1998560428619385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:33:22.476059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:33:32.498145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5905377864837646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:33:42.500286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.623509168624878 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:34:03.222791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5567890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:34:12.705032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4442179203033447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:34:22.706944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:34:32.736242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5600636005401611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:34:42.664283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.584012746810913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:35:03.387080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:35:12.750553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2045788764953613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:35:22.816415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5596990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:35:32.841339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565805196762085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:35:42.818522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bcff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5922284126281738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:36:02.414196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:36:11.950800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2069079875946045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:36:21.987982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:36:31.983599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.564568042755127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:36:41.989478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6012301445007324 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:37:02.824883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:37:12.140340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2112653255462646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:37:22.095130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:37:32.172930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5602796077728271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:37:42.217303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6161158084869385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:38:02.848908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:38:12.313882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2029118537902832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:38:22.434803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:38:32.419450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5890719890594482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:38:46.242977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5786020755767822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:39:03.255610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:39:12.350837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4487073421478271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:39:22.455500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55099d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55099d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55099d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:39:32.407206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5524003505706787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:39:42.389715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e70d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5638904571533203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:40:03.003816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:40:12.481550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1936824321746826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:40:22.538856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:40:32.624289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5709507465362549 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:40:42.590676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6055192947387695 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:41:03.444061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:41:12.703737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2064173221588135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:41:22.774398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:41:32.744710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5629193782806396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:41:42.769947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6203527450561523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:42:02.349796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5508a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:42:11.991275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5483030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2031190395355225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:42:21.948893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb651bf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb651bf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb651bf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:42:31.968460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5607309341430664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:42:41.934653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5995633602142334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:43:02.860217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:43:12.046081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2377488613128662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:43:22.087053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:43:32.213600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5768587589263916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:43:42.172623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5927846431732178 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:44:02.978461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:44:12.331391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4396944046020508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:44:22.312996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:44:32.340945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5093533992767334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:44:42.349065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5168483257293701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:45:03.071131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:45:12.472230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.200721025466919 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:45:22.581749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55859f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55859f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55859f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:45:32.512901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.564563274383545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:45:42.520709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6174399852752686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:46:04.523111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:46:12.649897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.194291353225708 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:46:22.738630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:46:32.692274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5566344261169434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:46:42.719349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.584216833114624 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:47:02.638217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:47:11.830618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3428881168365479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:47:21.852206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5584930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:47:31.969398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6028597354888916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:47:41.910662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6104700565338135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:48:02.519397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55208b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55208b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55208b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:48:12.042189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1924028396606445 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:48:22.148021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:48:32.132009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a2cc70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5691778659820557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:48:42.045687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.604642629623413 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:49:03.110148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:49:12.167574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4540143013000488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:49:22.275319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:49:32.241849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5147829055786133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:49:42.216759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.544372797012329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:50:02.861076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:50:12.313246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3863179683685303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:50:22.401966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:50:32.401336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5678727626800537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:50:42.388287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.595482349395752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:51:03.260690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:51:12.523723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3092925548553467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:51:22.547189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:51:32.589221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5495030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.569577932357788 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:51:42.567714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5996904373168945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:52:03.258935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:52:12.705082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2593474388122559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:52:22.702496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:52:32.712968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5963184833526611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:52:42.745769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6031429767608643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:53:02.461034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:53:14.885808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3102591037750244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:53:21.907465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:53:31.940424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5800273418426514 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:53:41.900990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6129143238067627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:54:02.855165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:54:12.021588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4497573375701904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:54:22.052779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5552af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:54:32.046968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5848727226257324 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:54:42.162378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5942754745483398 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:55:03.044157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:55:12.259779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3194506168365479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:55:23.967613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:55:32.343444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5691823959350586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:55:42.326543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6012308597564697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:56:02.985500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:56:12.433263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.201247215270996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:56:22.485456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:56:32.512274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5598418712615967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:56:42.497527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5961041450500488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:57:03.336504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:57:12.661834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3162736892700195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:57:22.656595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:57:33.901012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5740385055541992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:57:43.932772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6084487438201904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 02:59:03.373426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:59:12.633095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.690459966659546 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 02:59:22.445902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 02:59:32.524867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55247b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.498838186264038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 02:59:42.657607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.519294261932373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:00:03.220561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:00:12.850504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555cf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2040977478027344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:00:22.771456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:00:32.841044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54987b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5684492588043213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:00:42.841140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.632993459701538 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:01:02.714512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:01:11.937890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1996190547943115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:01:22.009696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:01:31.986807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5672125816345215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:01:42.084865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6080653667449951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:02:02.701486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:02:12.249603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1931259632110596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:02:22.277075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:02:32.249018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5957391262054443 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:02:42.280788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5965681076049805 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:03:03.173097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:03:12.372153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.437532663345337 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:03:22.359086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:03:32.502646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5802745819091797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:03:42.547810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5998964309692383 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:04:05.700344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:04:12.714376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5611612796783447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:04:22.705854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:04:32.733426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb62347d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.557020902633667 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:04:42.676762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4832723140716553 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:05:04.019216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:05:11.890245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:05:21.970597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:05:31.901750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4528093338012695 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:05:44.769300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4930613040924072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:06:02.299667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:06:12.840031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1992137432098389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
 val : 1 : upload photos already in processing! 
2025-12-03 03:06:29.612650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:06:41.928184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6037852764129639 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:07:02.602767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:07:11.994379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.445991039276123 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:07:22.121830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:07:32.081226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.442596673965454 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:07:42.034482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.467799425125122 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
 val : 1 : upload photos already in processing! 
2025-12-03 03:08:06.969937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:08:22.261320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:08:32.236236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2304863929748535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:08:42.321874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5962960720062256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:09:03.414406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:09:12.346601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4347617626190186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:09:22.489015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:09:32.437594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4342877864837646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:09:42.402050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4964206218719482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:10:03.221751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:10:12.608980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2126295566558838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:10:22.712230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:10:32.710133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5664312839508057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:10:42.709736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6115999221801758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:11:02.576930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:11:11.814160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.275620937347412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:11:21.827917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:11:31.934925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55910b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5584063529968262 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:11:41.903078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594440221786499 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:12:02.454879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:12:13.741531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.198373794555664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:12:22.166474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:12:36.815109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5932121276855469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:12:42.128614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600792646408081 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:13:02.923652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:13:12.226876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.199934720993042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:13:23.957381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:13:32.403337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5753321647644043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:13:42.403114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5995683670043945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:14:03.266643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:14:12.560366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4492948055267334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:14:29.311335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:14:32.513173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:14:42.522646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.519810438156128 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:15:03.318264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:15:12.621114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4599833488464355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:15:22.690584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55009d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55009d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55009d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:15:33.437284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5453030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4497015476226807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:15:43.811392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.4834671020507812 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:16:02.417577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:16:11.961977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.196878433227539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:16:22.084648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:16:32.155158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5614514350891113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:16:42.026707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5919461250305176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:17:02.760120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5568870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:17:12.144517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.190882682800293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:17:22.196594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:17:32.171119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5737450122833252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:17:42.215097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6099631786346436 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:18:02.848535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:18:12.318867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2047090530395508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:18:22.315028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:18:32.430625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5498030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5724341869354248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:18:42.394855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6182787418365479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:19:03.364071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:19:12.553103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.442523717880249 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:19:22.637315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:19:32.666949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4957129955291748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:19:42.695734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5381367206573486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:20:02.303547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:20:11.916239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5469030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2069141864776611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:20:21.878024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:20:31.869138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5698118209838867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:20:47.204394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6072769165039062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:21:03.055452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:21:12.290237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2469322681427002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:21:22.326554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:21:32.456603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5679714679718018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:21:42.422253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5885605812072754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:22:03.056356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:22:12.512504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.227731704711914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:22:22.584685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:22:32.685682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5686750411987305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:22:45.525498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6027183532714844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:23:03.217296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:23:13.767538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.194303035736084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:23:22.724600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:23:32.669145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.569460153579712 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:23:45.059176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5952627658843994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:24:02.661951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:24:12.200805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8749699592590332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:24:22.114283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:24:34.542530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.958693265914917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:24:42.157020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5977160930633545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:25:05.027750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:25:12.325659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4963278770446777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:25:22.228343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:25:32.250410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4622220993041992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:25:44.034046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.4678843021392822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:26:04.505339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55449f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:26:13.972662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2101588249206543 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:26:24.031878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:26:34.025200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5846450328826904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:26:44.056951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6005115509033203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:27:02.725631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:27:12.185612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2001087665557861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:27:26.022108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:27:32.259091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5683319568634033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:27:42.239990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.591017246246338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:28:02.876467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5534970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:28:12.409641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1963880062103271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:28:22.462639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:28:32.479739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bcfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5623283386230469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:28:42.401094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5943880081176758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:29:03.389636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:29:12.610653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5482030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4550015926361084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:29:22.546713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:29:32.561788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5191476345062256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:29:42.602664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5379505157470703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:30:04.432513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:30:13.871920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2161195278167725 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:30:23.969528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55588d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55588d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55588d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:30:34.054265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5608816146850586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:30:43.909065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5794284343719482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:31:02.651424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:31:16.695265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2846579551696777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:31:22.026516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5595950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:31:32.134976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5850880146026611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:31:42.086981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5488030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5880959033966064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:32:02.655753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cba90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:32:12.159696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55007f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1962251663208008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:32:22.319399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:32:32.325729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5813615322113037 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:32:42.302363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5967369079589844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:33:03.149387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:33:12.423859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552cf30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2283055782318115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:33:22.460721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:33:32.499231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5779285430908203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:33:42.548264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599278450012207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:34:03.526326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:34:12.679497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4657909870147705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:34:22.751150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:34:32.749549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5607235431671143 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:34:42.713606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6172585487365723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:35:02.514092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5582970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:35:11.825618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2066493034362793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:35:21.884258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:35:38.246532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5668854713439941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:35:41.881893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.595151424407959 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:36:02.566231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:36:12.006777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.204054355621338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:36:22.018650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:36:32.089042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5647752285003662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:36:42.101442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6124026775360107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:37:03.013698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5537970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:37:12.254988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553bfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2265422344207764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:37:22.290552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:37:34.036829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5811002254486084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:37:42.353884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5944104194641113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:38:02.942802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55498f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55498f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55498f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:38:12.441788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.198737382888794 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:38:22.537537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55708d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55708d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55708d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:38:32.531140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.804039478302002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:38:42.908032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.603410005569458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:39:03.110074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558c130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:39:12.055925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4590587615966797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:39:22.139029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55458d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55458d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55458d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:39:32.100548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5023584365844727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:39:42.077436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.553997278213501 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:40:02.682086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:40:12.200326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.442704200744629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:40:27.200883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5598550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:40:32.375189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565476417541504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:40:45.378696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6091318130493164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:41:03.222816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:41:12.453980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4377355575561523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:41:22.548679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5576930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:41:32.581529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdb50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5823547840118408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:41:42.605164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5983176231384277 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:42:03.195342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:42:12.722394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2854881286621094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:42:22.755167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55051f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55051f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55051f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:42:32.877044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5795059204101562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:42:43.001622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6012978553771973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:43:02.769581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:43:12.076789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2110981941223145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:43:22.168618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55799b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:43:32.208981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565992832183838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:43:42.230727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.588733434677124 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:44:03.200387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:44:12.357369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4425556659698486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:44:22.482959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:44:32.440229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.583430290222168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:44:42.402913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5816318988800049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:45:03.271426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:45:12.479195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4407784938812256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:45:22.642579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:45:32.701069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5672399997711182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:45:42.681266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5955748558044434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:46:02.287438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:46:11.850594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.206308126449585 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:46:21.843227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:46:31.852185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ff10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.555011510848999 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:46:41.850447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6069157123565674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:47:02.655822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:47:11.937119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1916627883911133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:47:22.021626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:47:32.094769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5716702938079834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:47:42.030367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5904932022094727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:48:02.736005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:48:12.174292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2096285820007324 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:48:22.197227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:48:32.218884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ebed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5709381103515625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:48:42.244844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6032531261444092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:49:03.421512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5556a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:49:14.108254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5111985206604004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:49:22.503265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55929d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55929d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55929d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:49:32.431111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4863524436950684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:49:42.399402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5265083312988281 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:50:03.012072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:50:12.604027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.437143325805664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:50:22.583973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:50:32.610669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.566962480545044 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:50:42.595524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.604215145111084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:51:03.487577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:51:12.745417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.4266579151153564 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:51:22.712919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:51:32.823747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6076555252075195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:51:42.861773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6070730686187744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:52:02.443744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:52:11.996639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4482228755950928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:52:21.963807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b51d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b51d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b51d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:52:31.960192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4610240459442139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:52:41.971906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.468475103378296 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:53:02.916859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:53:18.165319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4243626594543457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:53:22.245581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55989d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:53:32.248230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600675344467163 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:53:42.308807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5944817066192627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:54:03.121301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:54:12.333962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ddff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4514496326446533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:54:22.435283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55114b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55114b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55114b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:54:32.504590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ae90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4571313858032227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:54:42.408865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5490030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4782164096832275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:55:03.307839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:55:12.602447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5498fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4181630611419678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:55:22.614702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:55:32.665962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5776991844177246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:55:42.649858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6033806800842285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:56:03.275627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55229f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55229f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55229f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:56:12.817812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3954198360443115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:56:22.857841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:56:32.827260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5899178981781006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:56:42.974367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6117854118347168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:57:02.818013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55209d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:57:12.072996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.410935878753662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:57:22.166008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:57:32.120626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5738334655761719 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:57:42.135792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5993359088897705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 03:59:03.320776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55919b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:59:12.421237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f04770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4537739753723145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 03:59:22.464291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 03:59:32.433792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5611634254455566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 03:59:42.428817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5881755352020264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:00:02.951870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:00:12.534754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3626906871795654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:00:22.608140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:00:32.717604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.571624517440796 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:00:42.694414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5998046398162842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:01:02.612879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:01:11.870499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2444226741790771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:01:21.977048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:01:31.980961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.582529067993164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:01:41.982035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5960814952850342 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:02:02.549491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:02:12.072318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1951305866241455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:02:22.200113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:02:32.209541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5695312023162842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:02:42.244375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.602283000946045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:03:03.109919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:03:12.353388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3972527980804443 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:03:22.496132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5506930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:03:32.399447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5887739658355713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:03:42.402867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5918376445770264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:04:03.165252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:04:12.589893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4493787288665771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:04:22.538456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:04:32.548403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6013298034667969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:04:42.619055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605877161026001 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:05:03.427332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:05:12.717891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2068829536437988 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:05:22.691629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55978f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55978f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55978f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:05:32.748635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5761473178863525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:05:42.785935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6164283752441406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:06:02.402789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5500970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:06:11.881292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54adfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2024543285369873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:06:21.993515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5531950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:06:31.992544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5868189334869385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:06:42.844051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5820422172546387 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:07:02.631551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:07:11.957259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3075556755065918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:07:23.349168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:07:32.043764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5473030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2342395782470703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:07:42.022815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5449030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5979058742523193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:08:02.659355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:08:12.190735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.20607328414917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:08:22.194057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:08:38.491556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.576697826385498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:08:42.297558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5893445014953613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:09:03.441934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5bac7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bac7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bac7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:09:12.436624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558eb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.8520233631134033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:09:22.585404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:09:37.874939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5096802711486816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:09:42.590883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.526853084564209 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:10:03.270621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:10:12.786875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4490954875946045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:10:22.750369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:10:32.768861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.593942403793335 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:10:42.774010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6013004779815674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:11:02.520632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:11:11.848056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448761224746704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:11:21.953550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:11:31.944289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54adfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5825483798980713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:11:41.940985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.608323574066162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:12:02.545886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:12:12.068742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4391417503356934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:12:22.171859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:12:32.101943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d80b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5908515453338623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:12:42.118405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5990803241729736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:13:03.012949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:13:12.259171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4422292709350586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:13:22.262795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:13:32.248130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.8441925048828125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:13:42.312765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6001601219177246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:14:03.124155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:14:12.604875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594346284866333 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:14:25.458888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:14:35.954284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.452646017074585 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:14:42.451208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.48073410987854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:15:03.331552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:15:12.710955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.858055591583252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:15:22.671239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:15:32.808639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.3782501220703125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:15:43.441214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6204795837402344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:16:03.031283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:16:12.536766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.372093915939331 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:16:22.555613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:16:32.621264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5748083591461182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:16:42.577620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6084845066070557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:17:03.397245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:17:12.732108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3081982135772705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:17:22.778437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:17:32.758479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5775461196899414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:17:42.764767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.75236177444458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:18:02.360208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:18:11.884776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552def0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.19730544090271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:18:21.903101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55239f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55239f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55239f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:18:31.933514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5896062850952148 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:18:41.931377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5892889499664307 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:19:02.890065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:19:12.072515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1f410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4770982265472412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:19:22.061411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55249d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55249d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55249d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:19:32.208554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4850666522979736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:19:42.085713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5342669486999512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:20:02.703175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:20:12.177474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.200073003768921 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:20:22.345320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:20:32.266219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6049880981445312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:20:42.252079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5985817909240723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:21:03.149918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:21:12.447602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4136083126068115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:21:22.527442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:21:32.449535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5912330150604248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:21:42.547879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.583514928817749 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:22:03.120296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:22:12.647134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2107484340667725 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:22:22.771579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5510a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:22:32.759254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5807859897613525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:22:42.709371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f71710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5986099243164062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:23:02.479365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:23:11.843087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.253932237625122 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:23:21.976684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:23:31.876293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.575667142868042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:23:41.889370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6001615524291992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:24:02.836397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5576950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:24:12.006695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.46272611618042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:24:22.104046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55638d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55638d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55638d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:24:32.068354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.566206932067871 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:24:42.065039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5995640754699707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:25:02.933146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:25:12.281635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5489030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2262349128723145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:25:22.234196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:25:32.257240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.56778883934021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:25:42.246025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5870258808135986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:26:02.774306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55409d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55409d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55409d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:26:12.347380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.203035831451416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:26:22.411857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:26:32.392638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5463030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5919404029846191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:26:42.431674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.591465711593628 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:27:03.270743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55129f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55129f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55129f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:27:12.642446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1933228969573975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:27:22.642236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:27:32.674658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.577136754989624 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:27:42.613716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5821270942687988 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:28:03.837790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:28:12.766068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2036175727844238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:28:22.799092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5b1e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b1e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b1e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:28:32.800264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5709216594696045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:28:42.850651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.608285665512085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:29:03.016203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:29:12.059383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4635701179504395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:29:22.144343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f55330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f55330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f55330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:29:32.044939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5069730281829834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:29:42.044794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5285398960113525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:30:02.601010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:30:12.120837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2079496383666992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:30:22.199159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:30:32.391482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.587805986404419 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:30:42.377981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6048080921173096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:31:03.131831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:31:12.483293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2009363174438477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:31:22.586670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:31:33.213735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:31:43.412827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5882749557495117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:32:03.048490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:32:14.410465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4558241367340088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:32:22.570253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:32:32.497704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4552736282348633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:32:42.517005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4920222759246826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:33:03.498199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:33:12.792586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3459506034851074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:33:23.244689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:33:32.741378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5796730518341064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:33:42.749937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5453030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6158123016357422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:34:02.633672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:34:12.028773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4587457180023193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:34:21.868672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:34:31.855451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4560465812683105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:34:41.808151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4798650741577148 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:35:02.734704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:35:12.035512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3804035186767578 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:35:22.116348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:35:32.060465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.567126989364624 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:35:42.244112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6315507888793945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:36:02.931389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:36:17.243659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2155656814575195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:36:22.435476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:36:32.643939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5750408172607422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:36:42.423349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6152830123901367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:37:03.224915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:37:12.543529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1984343528747559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:37:24.644712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:37:32.634434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5656442642211914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:37:42.577076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594984769821167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:38:03.178407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5515910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:38:12.808409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2213332653045654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:38:22.764813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55238b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55238b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55238b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:38:32.762691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5728282928466797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:38:42.740937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5438030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5855560302734375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:39:02.663442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f4d590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f4d590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f4d590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:39:11.856640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4428346157073975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:39:24.705553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:39:32.689891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.519129753112793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:39:41.912766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5181727409362793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:40:02.563439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:40:12.053373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cbfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4631538391113281 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:40:22.100551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:40:34.520594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:41:02.995726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:41:17.511945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.513373851776123 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:41:22.524117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:41:32.417892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4530439376831055 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:41:42.420965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.6520943641662598 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:42:03.123607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:42:12.625449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4517583847045898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:42:22.641632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:42:32.687556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572119951248169 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:42:42.723681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5905890464782715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:43:02.546792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:43:11.899278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4620189666748047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:43:21.981481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:43:31.895147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5636169910430908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:43:41.909729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6312546730041504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:44:02.729766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:44:12.041206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4495735168457031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:44:22.041981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:44:32.204747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5833680629730225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:44:42.044405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ae050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5944406986236572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:45:02.876589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:45:12.224662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586756229400635 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:45:22.258547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:45:32.317676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5883209705352783 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:45:42.289293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598799705505371 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:46:02.938148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:46:12.473847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4417827129364014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:46:22.451988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:46:32.586396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bffb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5715413093566895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:46:42.536920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55af050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6063308715820312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:47:03.446020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:47:12.677931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4437894821166992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:47:22.753977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:47:32.705416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5697166919708252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:47:42.760755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6031229496002197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:48:02.375969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55298d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55298d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55298d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:48:11.857757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2866973876953125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:48:21.993472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55419b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:48:31.970180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5692837238311768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:48:41.976613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cbb50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6033871173858643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:49:03.122132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:49:12.067127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4546613693237305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:49:22.173784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:49:32.241851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5458030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5792267322540283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:49:42.120855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599060297012329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:50:02.760896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5512930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:50:12.284366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1897006034851074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:50:22.385083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:50:32.301101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555df30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565803050994873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:50:42.324028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f4f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5950286388397217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:51:03.084962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55630f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55630f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55630f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:51:12.471999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.367877721786499 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:51:22.446049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:51:32.564836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5898480415344238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:51:42.479022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5795726776123047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:52:03.159717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:52:12.597583
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1943962574005127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:52:22.670758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:52:32.656207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5828299522399902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:52:42.619900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.607100486755371 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:53:03.432437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:53:12.748869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2133240699768066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:53:22.810038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55018d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55018d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55018d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:53:32.782399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.549487829208374 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:53:42.803107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6018192768096924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:54:02.767314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:54:11.944860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4546396732330322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:54:21.986506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:54:32.062112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5735900402069092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:54:41.961776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5973632335662842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:55:02.662119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:55:12.207273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2646465301513672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:55:22.139865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:55:32.167856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5677447319030762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:55:42.263483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5949621200561523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:56:02.863882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:56:12.375114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.225724220275879 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:56:22.565939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5a5dc70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a5dc70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a5dc70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:56:32.500980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5654613971710205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:56:42.458075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6033916473388672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:57:03.335897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:57:12.569188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4291870594024658 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:57:22.641175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:57:32.600068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5652697086334229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:57:42.636214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5888314247131348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 04:59:02.909295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:59:12.041303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4448890686035156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 04:59:22.072098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 04:59:32.104126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5726120471954346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 04:59:42.145625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6233770847320557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:00:02.835748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55839d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:00:12.274064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.453303575515747 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:00:22.355373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:00:32.377829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5766563415527344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:00:42.288014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55520d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.588285207748413 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:01:03.168309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55848d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55848d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55848d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:01:12.419142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4506120681762695 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:01:22.467010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:01:32.459503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5723152160644531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:01:42.462560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5909342765808105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:02:03.129972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:02:12.579401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4587016105651855 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:02:22.622423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:02:32.647208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55040b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5716679096221924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:02:42.671650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6133904457092285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:03:02.465193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:03:11.809512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4330415725708008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:03:21.862357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:03:31.877740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5662806034088135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:03:41.844212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5450030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5910542011260986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:04:02.770033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:04:11.966693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.466919183731079 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:04:22.007326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:04:31.964607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5823194980621338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:04:42.028901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6288893222808838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:05:02.871299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:05:12.171557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4376277923583984 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:05:22.201950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:05:32.187672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5839154720306396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:05:42.212614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6030957698822021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:06:02.843625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:06:12.348180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3773689270019531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:06:22.535360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55419f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:06:32.359164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5819299221038818 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:06:42.378016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5972068309783936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:07:03.216852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:07:12.486547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4175446033477783 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:07:22.572069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:07:32.538523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.587343692779541 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:07:42.533781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558afd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.589435338973999 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:08:03.200663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:08:12.646238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2280046939849854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:08:22.704603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55108b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55108b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55108b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:08:32.751519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5738534927368164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:08:42.726941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6143841743469238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:09:02.770709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55399f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55399f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55399f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:09:11.884822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4573876857757568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:09:22.001884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:09:31.963329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6006028652191162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:09:41.926659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6123464107513428 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:10:02.541555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:10:12.012591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2358314990997314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:10:22.217815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:10:32.164143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.570915699005127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:10:42.133573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6104168891906738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:11:03.005629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55019d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55019d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55019d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:11:12.248563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.901865720748901 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:11:22.281084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:11:32.314961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5844671726226807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:11:42.289803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5912137031555176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:12:02.962875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:12:12.476515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2020742893218994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:12:22.454081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:12:32.472100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5468030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5697872638702393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:12:42.499116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5923936367034912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:13:03.393532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:13:12.616898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4370677471160889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:13:22.660217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:13:32.739006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5642454624176025 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:13:42.747478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5881953239440918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:14:02.648278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:14:11.882196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4630780220031738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:14:23.184098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:14:32.001765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.622756004333496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:14:42.000080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5498ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6049106121063232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:15:02.805349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:15:12.088951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.45532488822937 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:15:22.242761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:15:32.241680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54feed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.0017449855804443 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:15:42.234415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.592700719833374 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:16:02.736595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:16:12.324513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.454721450805664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:16:24.697771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:16:32.602551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4529507160186768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:16:42.449869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4803359508514404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:17:03.369634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fde310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fde310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fde310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:17:12.641654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2086126804351807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:17:23.239766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:17:32.729680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5902142524719238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:17:42.855223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.603473424911499 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:18:02.581793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:18:12.064682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fafd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2016024589538574 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:18:22.050332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5523970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:18:32.024494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5610785484313965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:18:42.030975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5993194580078125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:19:03.071388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:19:12.156555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4536693096160889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:19:22.217021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:19:32.272905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.540959119796753 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:19:42.272286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5391674041748047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:20:02.920843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:20:12.519523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4451563358306885 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:20:22.498783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:20:32.497854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5781834125518799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:20:42.450391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6046018600463867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:21:03.253722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:21:12.588422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4275565147399902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:21:22.562172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:21:32.628947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.587967872619629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:21:42.627593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6105103492736816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:22:03.219907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:22:12.753074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.346228837966919 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:22:22.789832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54be9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:22:32.794819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.560643196105957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:22:42.797998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5996696949005127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:23:02.441849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55028b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55028b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55028b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:23:11.952797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.235896110534668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:23:22.004102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55569f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55569f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55569f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:23:31.982212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5748710632324219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:23:49.864599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5866878032684326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:24:02.634289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:24:11.935306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4539954662322998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:24:21.977275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb648df70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb648df70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb648df70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:24:31.960484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.561697244644165 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:24:42.084891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.616206407546997 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:25:02.892558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:25:12.238177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.511949300765991 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:25:23.136606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:25:32.863890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4606127738952637 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:25:42.260471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5925743579864502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:26:02.938535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:26:12.471846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4553346633911133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:26:22.417582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:26:32.340280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ff90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4535243511199951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:26:42.336984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4784128665924072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:27:03.364720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:27:12.665700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fb68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3218004703521729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:27:22.604078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:27:32.622034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5765693187713623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:27:42.613892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600243091583252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:28:03.244828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:28:12.772416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549af90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2548224925994873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:28:22.760428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:28:32.810162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.569981575012207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:28:42.839904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6209051609039307 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:29:03.023005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:29:11.938311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4549365043640137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:29:26.416289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:29:32.001476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.571671724319458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:29:41.970219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.610558032989502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:30:11.019295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:30:20.650983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2012412548065186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:30:30.711468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:30:40.734530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
 val : 1 : upload photos already in processing! 
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 15.141814470291138 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:31:03.269875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5596970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:31:12.596499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.474940299987793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:31:22.671599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55610f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55610f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55610f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:31:32.637480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4674158096313477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:31:42.605586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5473030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4762959480285645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:32:02.360845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:32:11.895460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2071669101715088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:32:21.952360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:32:31.941055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5760204792022705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:32:41.932216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.582397222518921 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:33:02.714870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:33:11.989736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1962361335754395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:33:22.153530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55728f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55728f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55728f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:33:32.094224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5763773918151855 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:33:42.099518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5946812629699707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:34:02.892636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:34:13.029780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:34:22.258435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:34:32.229326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2471845149993896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:34:42.267206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8115241527557373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:35:03.096456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55418d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55418d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55418d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:35:13.130476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.560659408569336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:35:22.497224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:35:36.067926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54caed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.337899923324585 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:35:42.509238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4782390594482422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:36:03.214746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:36:12.739207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2163810729980469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:36:22.839409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:36:32.788359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5631885528564453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:36:42.788206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6109027862548828 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:37:02.688175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:37:11.921297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.400719165802002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:37:21.910069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:37:31.990597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5670866966247559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:37:41.960626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.589538812637329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:38:02.491528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:38:12.045126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2034506797790527 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:38:22.194582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:38:32.134141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5829992294311523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:38:42.155665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.606048345565796 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:39:03.121979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55889d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55889d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55889d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:39:12.286486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4587657451629639 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:39:22.329242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:39:32.293841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5288021564483643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:39:42.306167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5596058368682861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:40:02.852348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:40:12.459831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4504573345184326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:40:22.485435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:40:32.464605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5776734352111816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:40:42.505358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.597090482711792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:41:03.455973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:41:12.737092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4585649967193604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:41:22.679815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:41:32.757303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.566643238067627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:41:42.672819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.617140531539917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:42:02.348682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:42:11.790188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4547641277313232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:42:21.877344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:42:31.847855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5720245838165283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:42:41.802034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5928525924682617 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:43:02.624697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:43:11.880294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3078811168670654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:43:21.939943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:43:31.979001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5773377418518066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:43:41.916800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.585510015487671 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:44:02.770969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:44:12.052426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.435767650604248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:44:22.063394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:44:32.075597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5485030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5600931644439697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:44:42.034933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.582862377166748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:45:02.924818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:45:12.199992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4392976760864258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:45:22.189862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55159d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:45:32.275550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5772645473480225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:45:42.183056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5997023582458496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:46:02.813312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:46:12.284568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5491030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2892134189605713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:46:22.410692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:46:32.346355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598752737045288 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:46:42.367829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5950474739074707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:47:03.256630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:47:12.583504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4344522953033447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:47:22.564738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:47:32.629577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5798187255859375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:47:42.521841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fc0650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6189186573028564 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:48:03.038377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:48:12.652590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1961028575897217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:48:22.656407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:48:32.739860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5758709907531738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:48:42.725709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5860846042633057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:49:02.870428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5592990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:49:11.900381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.46651291847229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:49:21.923454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:49:31.872875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5238144397735596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:49:42.012343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.523672342300415 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:50:02.627989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:50:12.175037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4435479640960693 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:50:22.203591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:50:32.305506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f6fef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600405216217041 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:50:42.201480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7620372772216797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:51:03.028636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:51:12.326263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4575247764587402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:51:22.405158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:51:32.437116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5708227157592773 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:51:42.436428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6094558238983154 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:52:03.003251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:52:12.615986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4638895988464355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:52:22.627014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:52:32.719462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5835998058319092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:52:42.574098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6092851161956787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:53:03.430261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:53:12.730684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4500675201416016 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:53:22.759344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55478b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55478b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55478b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:53:32.767476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5733444690704346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:53:42.774339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6183760166168213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:54:02.607314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5531970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:54:11.876698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5480030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4540565013885498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:54:21.927909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:54:31.918027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fb2eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5647377967834473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:54:41.902619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6143271923065186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:55:02.691954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb61b1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61b1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61b1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:55:12.031927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5487030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.44752836227417 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:55:22.056079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:55:32.085707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5540812015533447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:55:42.071221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.606290340423584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:56:02.638494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fe9690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fe9690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fe9690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:56:12.208705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4512569904327393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:56:22.302469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:56:32.289871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5660595893859863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:56:42.302900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6021549701690674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:57:03.122551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:57:12.400903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.438072681427002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:57:22.459349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:57:32.479350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572425365447998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:57:42.458830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.608797311782837 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 05:59:03.566354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:59:12.834543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4620716571807861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 05:59:22.753125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 05:59:32.863931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5812368392944336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 05:59:42.857477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6018047332763672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:00:02.559136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:00:11.999468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2152702808380127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:00:22.058773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:00:32.056581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5685880184173584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:00:42.073978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6143767833709717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:01:02.800943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:01:12.234236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2502291202545166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:01:22.224394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:01:32.188972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.55216383934021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:01:46.110669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5844652652740479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:02:02.695636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:02:12.261905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.209679365158081 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:02:22.296819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:02:32.252729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5817410945892334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:02:42.302261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5888524055480957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:03:04.960716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:03:12.403695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.204411268234253 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:03:22.482662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:03:32.676183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5802826881408691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:03:42.579333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5452030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6127445697784424 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:04:03.504432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:04:12.714631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448709487915039 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:04:22.757433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:04:32.803502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5968494415283203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:04:50.000320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6141445636749268 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:05:02.867258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c48f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c48f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c48f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:05:12.024970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451263427734375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:05:22.182919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:05:32.142213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5821444988250732 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:05:42.160120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.623922348022461 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:06:02.813540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:06:12.355559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.239572286605835 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:06:22.356218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:06:32.338511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5583598613739014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:06:42.334473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5930964946746826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:07:03.142315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5567970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:07:12.447598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2549552917480469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:07:22.475075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:07:32.507171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5703253746032715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:07:42.513892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.627762794494629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:08:03.014765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:08:12.732709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2170116901397705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:08:22.769862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55579f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55579f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55579f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:08:32.715014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5666687488555908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:08:42.746063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5992341041564941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:09:02.706492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:09:11.859594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4475748538970947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:09:21.910998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:09:31.965144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5775809288024902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:09:41.924410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5445030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599363088607788 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:10:02.623058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:10:12.025880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.200739860534668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:10:22.351134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:10:32.090858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5693771839141846 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:10:42.084133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6218454837799072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:11:02.969464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:11:12.223442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2007713317871094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:11:22.263113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:11:32.275947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5939245223999023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:11:42.241706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6180956363677979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:12:02.813029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb616b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb616b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb616b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:12:12.356899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.22383713722229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:12:22.380730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:12:32.427178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5956494808197021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:12:44.024099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5467030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6094329357147217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:13:02.812243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:13:12.140179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.196213960647583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:13:22.205504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:13:32.186983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5629973411560059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:13:42.176607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6038918495178223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:14:03.008281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:14:12.328962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1955113410949707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:14:22.261432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:14:32.366325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5666730403900146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:14:42.367131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5921432971954346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:15:03.797733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:15:13.064532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.218637466430664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:15:23.135615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:15:33.150153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fc19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5576105117797852 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:15:43.216982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.60097074508667 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:16:02.865984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:16:12.317420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.196422815322876 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:16:22.386405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:16:32.561694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5755043029785156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:16:42.401556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55020b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599374771118164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:17:03.162424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5573950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:17:12.505962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1893935203552246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:17:22.699091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:17:32.674369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5642623901367188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:17:42.681051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.608760118484497 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:18:02.278806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:18:11.774251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.210364580154419 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:18:21.913922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:18:31.847999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5912034511566162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:18:41.869863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6049091815948486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:19:02.746092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:19:16.779034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451848030090332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:19:22.071783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:19:32.181279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5603973865509033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:19:42.039164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.601386308670044 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:20:02.627775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55819f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55819f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55819f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:20:12.173802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.47147536277771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:20:22.312314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:20:32.210023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.580895185470581 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:20:42.224615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6303772926330566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:21:03.151246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:21:12.317027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4517028331756592 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:21:22.348731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:21:32.382354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5845239162445068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:21:42.401357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6076977252960205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:22:03.038069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:22:12.608677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4533121585845947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:22:22.682756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:22:32.737974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5862407684326172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:22:42.583789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554bfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598405361175537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:23:03.343941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:23:12.738671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ac050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448261022567749 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:23:22.763690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:23:32.758149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598881483078003 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:23:42.771595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.62052583694458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:24:03.044073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:24:11.910482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4495317935943604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:24:22.008732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:24:32.147887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5614984035491943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:24:42.066634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6057405471801758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:25:02.940988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:25:12.186961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5b370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4667952060699463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:25:22.222037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:25:32.212802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5789616107940674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:25:42.233602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6024243831634521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:26:02.822665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:26:12.377290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4669554233551025 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:26:22.405173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:26:32.403620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55577f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5738599300384521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:26:42.501506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5996904373168945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:27:03.193333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:27:12.730981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4443442821502686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:27:22.705150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:27:32.727050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5887677669525146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:27:42.667023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5982496738433838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:28:02.252488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:28:11.870781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5457030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3930754661560059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:28:21.817114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:28:31.838380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5867607593536377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:28:41.862000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.391824007034302 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:29:03.092880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:29:12.110975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4549102783203125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:29:22.287187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55899d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:29:32.406430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5589549541473389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:29:42.218211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.590935230255127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:30:02.827218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:30:12.332757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2594213485717773 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:30:22.389130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5528570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:30:32.362729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5489030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6058251857757568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:30:42.386471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6175782680511475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:31:03.134767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:31:12.496030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.230161428451538 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:31:22.538264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:31:32.673911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.561661958694458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:31:42.634849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.632660150527954 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:32:03.295250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:32:12.733289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1954014301300049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:32:22.857382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:32:32.869392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.57902193069458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:32:42.779245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6210219860076904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:33:02.567067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:33:11.862266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1923723220825195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:33:21.926219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:33:31.996308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600111722946167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:33:41.935182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549de30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6111938953399658 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:34:02.895033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:34:12.040267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4599263668060303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:34:22.136376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:34:32.095092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5806818008422852 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:34:42.132912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6115758419036865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:35:03.025487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:35:12.274032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.352663278579712 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:35:22.306505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:35:32.285092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5747220516204834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:35:42.358854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5841472148895264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:36:02.965155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:36:12.467186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.204235553741455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:36:22.524223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:36:32.484537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5928382873535156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:36:42.496688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6062507629394531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:37:03.178880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:37:12.675539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1999847888946533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:37:22.680550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55299d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55299d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55299d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:37:32.717507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551df90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.579075574874878 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:37:42.725305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55290b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.616903305053711 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:38:02.330394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bcab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bcab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bcab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:38:11.895609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2065608501434326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:38:21.949172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:38:31.943913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5912704467773438 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:38:41.948428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5998082160949707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:39:03.125285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:39:12.067847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4588854312896729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:39:22.181682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:39:32.241464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4983177185058594 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:39:42.105725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.517953872680664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:40:02.742608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:40:12.262610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4670987129211426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:40:22.329143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:40:32.311943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5759541988372803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:40:42.308940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6039302349090576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:41:03.164435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:41:12.400753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55470b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4518930912017822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:41:22.454787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:41:32.459536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5782814025878906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:41:42.491929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605590581893921 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:42:03.073697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:42:12.598742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457690715789795 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:42:22.694172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:42:32.733521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.595550537109375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:42:42.729046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6171150207519531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:43:02.558989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:43:11.878435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4527082443237305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:43:21.896355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55608f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55608f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55608f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:43:31.935336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5777974128723145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:43:41.912234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6134123802185059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:44:02.733515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55078f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55078f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55078f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:44:12.029616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4605357646942139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:44:22.235165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:44:32.067970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5706355571746826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:44:42.049301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5958137512207031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:45:02.891069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:45:12.187000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.43768310546875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:45:22.219991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5534950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:45:32.276056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5842139720916748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:45:42.280130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6088533401489258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:46:05.705948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:46:15.240366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55780b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4505462646484375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:46:25.264025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:46:35.369998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5671541690826416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:46:45.335225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5983107089996338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:47:03.089718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:47:12.436738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.402231216430664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:47:22.457885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:47:32.451142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5784296989440918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:47:42.495090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6095058917999268 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:48:03.177452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:48:12.694311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2740554809570312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:48:22.640739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:48:32.665565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fff50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5814487934112549 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:48:42.706620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6081013679504395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:49:02.785906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:49:12.008928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4575824737548828 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:49:21.847515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:49:31.963358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.569455623626709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:49:41.818792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64b9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.604304552078247 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:50:02.456428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:50:11.955042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bcf8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.195589303970337 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:50:22.034814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:50:31.985280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5772500038146973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:50:41.973062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6104979515075684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:51:03.423448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:51:12.793591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4137706756591797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:51:22.756028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55015b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55015b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55015b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:51:32.855341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fafd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5856659412384033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:51:42.683490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6047794818878174 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:52:02.362041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55549f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:52:11.807584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2110662460327148 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:52:21.836834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:52:31.851413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572148323059082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:52:41.845475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.585578203201294 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:53:02.708792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:53:11.981887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.254359483718872 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:53:22.139281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:53:32.047544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5821144580841064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:53:42.033921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6103553771972656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:54:04.585570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:54:13.781534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.45383882522583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:54:23.932162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:54:33.860552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fef10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.459787368774414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:54:43.846340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ffba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.537182331085205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:55:02.714195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:55:12.122172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2296738624572754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:55:22.046922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:55:32.155924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5849695205688477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:55:42.022872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5953238010406494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:56:02.673824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:56:12.117253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.212217092514038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:56:22.149623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:56:32.212540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5495030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5752084255218506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:56:42.208881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6012547016143799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:57:02.946802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5afb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5afb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5afb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:57:12.315452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.200577974319458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:57:22.375175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:57:32.358287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5757958889007568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:57:42.479493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6169092655181885 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 06:59:03.824224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:59:12.794989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4534354209899902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 06:59:22.853754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 06:59:32.944939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5366449356079102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 06:59:42.843354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5671567916870117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:00:02.367113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:00:11.971963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557fe30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.437403678894043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:00:23.771567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55349d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55349d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55349d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:00:32.097107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5782628059387207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:00:41.993972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599196195602417 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:01:02.894490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:01:12.145716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4358203411102295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:01:22.212014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:01:32.296866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.58738112449646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:01:42.327234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6203680038452148 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:02:03.008978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55485d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55485d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55485d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:02:12.540312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4569220542907715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:02:22.614006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ada70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:02:32.502873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5739634037017822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:02:42.543362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6096649169921875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:03:03.386629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:03:12.727028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4385523796081543 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:03:22.688603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:03:32.763005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5715041160583496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:03:42.705921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6231229305267334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:04:02.606580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:04:11.831878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f6bf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4570426940917969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:04:21.989282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f523b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f523b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f523b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:04:31.970455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6093032360076904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:04:41.837381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6044683456420898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:05:02.598289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:05:11.982864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4426798820495605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:05:21.974561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55249f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55249f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55249f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:05:32.104059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5925166606903076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:05:42.016723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6083786487579346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:06:02.509280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:06:12.155603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.290095329284668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:06:22.199424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:06:32.235232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5813329219818115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:06:42.199785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.617384433746338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:07:02.994220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:07:12.340059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.309743881225586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:07:22.338494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:07:32.380451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ebeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5851850509643555 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:07:42.367472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6126279830932617 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:08:03.083558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:08:12.498450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5498fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3599522113800049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:08:22.663249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:08:32.524286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f60f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5937929153442383 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:08:42.503269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6192595958709717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:09:03.601431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb666d550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb666d550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb666d550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:09:12.834679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.474236011505127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:09:22.685985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55959d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:09:32.809567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5712072849273682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:09:42.679231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5974647998809814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:10:02.299637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:10:11.795619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2320466041564941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:10:21.923419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5563190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:10:31.847382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.579529047012329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:10:41.891266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605809211730957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:11:02.792607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:11:12.076839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2690188884735107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:11:22.169477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:11:32.062362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.570692539215088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:11:42.074740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.61985445022583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:12:02.601487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:12:12.134281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ce90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2152390480041504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:12:22.281687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:12:32.264547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5837304592132568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:12:42.270337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64a4f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6009228229522705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:13:03.063888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:13:12.384101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.191157579421997 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:13:22.398127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:13:32.435322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.571420431137085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:13:46.417802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5953571796417236 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:14:04.285695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:14:12.566229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457824945449829 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:14:22.573591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:14:32.604679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5770649909973145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:14:42.581155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6004993915557861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:15:03.425924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:15:12.744508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3806509971618652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:15:22.718441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:15:32.750636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5736050605773926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:15:42.767545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5962228775024414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:16:02.396190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:16:11.891810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1960265636444092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:16:21.953939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:16:31.895206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aafb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5844967365264893 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:16:41.997149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6048164367675781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:17:02.835287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:17:12.165701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.274939775466919 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:17:22.174041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:17:32.141475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5714128017425537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:17:42.199143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5989272594451904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:18:02.893555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:18:12.362280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2042982578277588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:18:22.372637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:18:32.411126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5604643821716309 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:18:42.386700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6084158420562744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:19:03.232484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:19:12.621639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4466838836669922 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:19:22.534840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:19:32.532011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5024549961090088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:19:42.568379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5293080806732178 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:20:03.211880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:20:12.767964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.439246654510498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:20:22.740811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:20:32.753012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5802040100097656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:20:42.789117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5983572006225586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:21:02.649051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:21:11.902850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4539105892181396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:21:22.045521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:21:31.949298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5950300693511963 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:21:42.010212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6047616004943848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:22:02.682933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:22:12.157644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4413087368011475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:22:22.194780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:22:32.208285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598921298980713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:22:42.164570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605025291442871 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:23:02.998667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:23:12.251875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451509952545166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:23:22.415524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:23:32.381925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5912020206451416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:23:42.386978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.621293067932129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:24:03.142192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:24:12.476452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4379734992980957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:24:22.533695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:24:32.546280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55340d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.570234775543213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:24:42.527999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6011669635772705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:25:03.439055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:25:12.662670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb65a5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4644865989685059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:25:22.710550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:25:32.818159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5915982723236084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:25:42.794349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6015148162841797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:26:02.448176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:26:11.923523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4483189582824707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:26:21.967848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:26:32.671988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5667088031768799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:26:41.941624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594358205795288 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:27:02.728808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55539d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55539d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55539d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:27:12.121955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3312194347381592 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:27:22.140025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:27:32.146926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5527870655059814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:27:42.137885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6189992427825928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:28:02.714589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5547870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:28:12.341020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.270132064819336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:28:22.348878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:28:32.386892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5776236057281494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:28:42.373852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.615776538848877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:29:03.666631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:29:12.562996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4580838680267334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:29:22.551127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55859f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55859f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55859f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:29:32.541196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6221163272857666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:29:42.561926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6197140216827393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:30:03.181454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:30:12.654980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.295731782913208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:30:22.725945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55859d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55859d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55859d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:30:32.838189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.580185890197754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:30:42.836135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.602245569229126 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:31:02.761204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:31:12.045483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3884565830230713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:31:22.005278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5554930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:31:32.010198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5449030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5781385898590088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:31:42.003955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6104426383972168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:32:02.609585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:32:12.183680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2057573795318604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:32:22.203226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:32:32.190581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5852973461151123 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:32:42.174357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6080927848815918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:33:03.020556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:33:12.323676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3846101760864258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:33:22.394852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:33:32.359239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5706417560577393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:33:42.378402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6116259098052979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:34:03.257498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:34:12.564440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcec70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.455073356628418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:34:22.551004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5534990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:34:32.548737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5842483043670654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:34:42.555477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d40d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.634150505065918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:35:03.263988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:35:12.715998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4651479721069336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:35:22.732708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:35:32.779670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.568434238433838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:35:42.724405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6001627445220947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:36:02.366227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:36:11.884430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5451030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4497320652008057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:36:21.930179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:36:31.942566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5835771560668945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:36:41.889014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6106629371643066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:37:02.765008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:37:12.015849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.443751335144043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:37:22.090085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:37:32.082076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.569990634918213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:37:42.058910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5861761569976807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:38:02.692392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:38:12.299700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454141616821289 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:38:22.221469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:38:32.203575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5679104328155518 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:38:42.241371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6087796688079834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:39:03.313754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:39:12.481660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4521293640136719 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:39:22.497429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:39:32.384153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5724108219146729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:39:42.453157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.612154483795166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:40:03.133432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:40:12.573051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4631860256195068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:40:22.616294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:40:32.643128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6016910076141357 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:40:42.618069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6027064323425293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:41:03.452625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:41:12.754997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.456970453262329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:41:22.798397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:41:32.814344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5740013122558594 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:41:42.856417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5980525016784668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:42:02.584815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:42:11.988560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4379143714904785 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:42:22.007280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:42:32.057856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5822997093200684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:42:41.980877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6270980834960938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:43:02.888860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:43:12.116007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555cef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4453561305999756 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:43:22.196528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:43:32.255275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.590291976928711 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:43:42.148060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.610426425933838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:44:02.989171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f946f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f946f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f946f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:44:12.285836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4630084037780762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:44:22.348775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:44:32.436507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5877866744995117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:44:42.316997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5482030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5809423923492432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:45:03.226776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:45:12.535702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3978643417358398 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:45:22.499846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:45:32.504428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5789544582366943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:45:42.494680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6183655261993408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:46:03.141104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55709d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:46:12.590378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2991797924041748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:46:22.668148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:46:32.682727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.577660083770752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:46:42.703480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5960030555725098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:47:02.521183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:47:11.850178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.236055850982666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:47:21.897805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:47:31.936442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5702214241027832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:47:41.934675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6185836791992188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:48:02.589208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:48:12.040081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.207035779953003 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:48:22.067070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5553570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:48:32.106375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6023592948913574 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:48:42.087203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5889556407928467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:49:03.229338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:49:12.187591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4519641399383545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:49:22.353486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:49:32.241836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5322952270507812 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:49:42.349130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e66f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5466811656951904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:50:02.958214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:50:12.428532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2037146091461182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:50:22.514293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:50:32.509406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5729079246520996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:50:42.505438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5438030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5980746746063232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:51:03.399926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:51:12.596225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5465030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3443701267242432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:51:22.773061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:51:32.762994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.580960750579834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:51:42.745482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555de70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6000568866729736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:52:02.471942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:52:11.962282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2084033489227295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:52:22.031724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:52:31.918552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5896461009979248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:52:41.887127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6053907871246338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:53:02.752810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f94b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f94b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f94b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:53:12.014683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2996797561645508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:53:22.111565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:53:32.074791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5762403011322021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:53:42.071746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.628525972366333 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:54:02.868621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:54:12.192199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4603385925292969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:54:22.243770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5569990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:54:32.202415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bf10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5104429721832275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:54:42.222603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.538489818572998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:55:03.055064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:55:12.352623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4160645008087158 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:55:22.408915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:55:32.432058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5450030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5756311416625977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:55:42.396424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5937583446502686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:56:03.116599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:56:12.481623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2365531921386719 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:56:22.529704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:56:32.696767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5825855731964111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:56:42.632302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600903034210205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:57:03.452044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:57:12.807184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4697129726409912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:57:22.833184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55409f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55409f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55409f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:57:32.771405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5898370742797852 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:57:42.761996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5438030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605813980102539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 07:59:02.673008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:59:12.036395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5480030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4623208045959473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 07:59:22.171369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 07:59:32.209281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5351183414459229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 07:59:42.283982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5726513862609863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:00:02.881021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:00:12.474513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5417745113372803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:00:22.484415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:00:32.471600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.544417381286621 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:00:42.383440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4500324726104736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:01:03.201259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:01:12.613113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2066092491149902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:01:22.633798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:01:32.772503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5472030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5694031715393066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:01:42.765718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f05730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599747657775879 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:02:02.459624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:02:11.908924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5472030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1955420970916748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:02:21.909102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55469d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55469d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55469d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:02:31.989029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5479178428649902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:02:41.996405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5771582126617432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:03:02.793410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:03:12.121047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2125415802001953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:03:22.152441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:03:32.188487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5671074390411377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:03:42.176443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6488f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6375277042388916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:04:03.037485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:04:12.282938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4296801090240479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:04:22.463754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:04:32.394141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5536706447601318 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:04:44.505936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5827937126159668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:05:03.283925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:05:12.657336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2147152423858643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:05:22.645648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:05:32.646084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6520f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5397858619689941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:05:42.704991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.55000638961792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:06:02.227452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55208d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55208d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55208d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:06:11.776488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1885223388671875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:06:22.019094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5537990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:06:31.940564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5500602722167969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:06:41.937494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565298318862915 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:07:02.748451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:07:12.059712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.20701003074646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:07:22.091228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:07:32.121953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5516574382781982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:07:42.105471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5728332996368408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:08:02.804680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:08:12.273301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2135682106018066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:08:22.349830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:08:32.283942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.573962688446045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:08:42.273132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5943107604980469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:09:03.249189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:09:12.511653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4368541240692139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:09:22.429040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:09:32.553592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5123331546783447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:09:42.532688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5367822647094727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:10:03.180889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:10:12.663278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4129862785339355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:10:22.729261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:10:32.713190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5685479640960693 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:10:42.725333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.596266746520996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:11:02.530329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:11:11.935630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4191484451293945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:11:21.886660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:11:31.870891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.565187692642212 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:11:41.885948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5781664848327637 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:12:02.542191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:12:12.022346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3906800746917725 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:12:22.059649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:12:32.093578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5871646404266357 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:12:42.096712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6145844459533691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:13:02.962253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:13:12.223898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.276029348373413 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:13:22.279863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:13:32.274346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5557215213775635 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:13:42.253095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5791308879852295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:14:03.146242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:14:12.438130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.452711820602417 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:14:22.433516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:14:32.420598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5441030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.568617343902588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:14:42.411796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6006100177764893 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:15:03.262886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eeab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:15:12.637050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.449885368347168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:15:22.664351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:15:32.650566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.555772066116333 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:15:42.600504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.608335018157959 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:16:03.226214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:16:12.802783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2056965827941895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:16:22.772582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:16:32.791575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5522851943969727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:16:42.792683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5862081050872803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:17:02.575496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:17:11.971836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.20212984085083 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:17:21.980593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:17:31.959732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5546257495880127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:17:41.959461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5472030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6018822193145752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:18:02.562428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:18:12.066862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2350304126739502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:18:22.139444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:18:32.187911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fdfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.574037790298462 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:18:42.164759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.60386323928833 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:19:03.322339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:19:12.480368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.439941167831421 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:19:22.269342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:19:32.293896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5088562965393066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:19:42.378192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.54286789894104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:20:02.990873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:20:12.595418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.440779685974121 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:20:22.616314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55329b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55329b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55329b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:20:32.563586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.793003797531128 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:20:42.547744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5929186344146729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:21:03.441383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:21:12.643529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55317d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4479308128356934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:21:22.837960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:21:32.671947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.559591293334961 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:21:42.741381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.595952033996582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:22:02.444359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55229d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55229d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55229d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:22:11.963827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4559788703918457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:22:21.892882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:22:32.054465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5631043910980225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:22:41.882624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.585146427154541 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:23:02.666128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:23:12.005242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4473602771759033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:23:22.049672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:23:32.166044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5814931392669678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:23:42.054388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ac070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5918707847595215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:24:02.932414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5597890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:24:12.228823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4564423561096191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:24:22.339443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:24:32.210588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5586955547332764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:24:42.264224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5756101608276367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:25:03.124330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:25:12.448978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.438516616821289 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:25:22.456107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:25:32.437457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.566326379776001 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:25:42.439656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5937409400939941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:26:03.091936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:26:12.530081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55637b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4389019012451172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:26:22.700653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:26:32.657270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5741422176361084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:26:42.596788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5865497589111328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:27:03.325928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:27:12.740699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4442367553710938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:27:22.746794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:27:32.749835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5675513744354248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:27:42.750036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5455030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6079869270324707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:28:02.317915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54daad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:28:11.931570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3977994918823242 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:28:21.913890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:28:31.895955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5938732624053955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:28:41.900244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5745279788970947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:29:03.093381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5545990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:29:12.137078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4535512924194336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:29:22.147283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:29:32.186476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.628737449645996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:29:42.098937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5750043392181396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:30:02.797550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:30:12.192244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1991608142852783 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:30:22.278543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55189b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55189b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55189b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:30:32.245386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5543913841247559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:30:42.257429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.590557336807251 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:31:03.076974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:31:12.394240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2713379859924316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:31:22.427308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:31:32.420263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5705482959747314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:31:42.449543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6059291362762451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:32:03.069013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:32:12.573827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2202885150909424 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:32:22.598231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:32:32.619796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5731840133666992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:32:42.660392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fb50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.585787296295166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:33:03.589747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:33:12.753827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4156591892242432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:33:22.822385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:33:32.867658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5589025020599365 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:33:42.892078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5492030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5871751308441162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:34:02.716109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:34:11.998470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4581916332244873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:34:22.189426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:34:32.222988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5746943950653076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:34:42.023917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5813112258911133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:35:02.788609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:35:12.109385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1946942806243896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:35:22.258762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5595970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:35:32.267765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ac2c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5460619926452637 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:35:42.273257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5790925025939941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:36:02.847904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:36:12.357283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1974260807037354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:36:22.463769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:36:32.431699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5615789890289307 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:36:42.516768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6038191318511963 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:37:04.224915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:37:13.723590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2110927104949951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:37:23.670228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffaf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:37:33.826886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.567396879196167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:37:43.698692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5930471420288086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:38:02.240400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:38:11.809366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2067034244537354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:38:21.947869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:38:31.862889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5747768878936768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:38:41.884909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5907258987426758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:39:03.689545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:39:12.051532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586873054504395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:39:22.100928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:39:32.042744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.560892105102539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:39:42.078477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5918762683868408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:40:02.641256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:40:12.191392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.211010456085205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:40:22.228165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:40:32.336417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.647589921951294 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:40:42.295895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f68590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6130425930023193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:41:03.159806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:41:12.546044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3358445167541504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:41:22.397463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:41:32.493486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55910b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5739538669586182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:41:42.571898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6132466793060303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:42:03.281335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:42:12.736746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2053923606872559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:42:22.733772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:42:32.781768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5884344577789307 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:42:42.731098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6009893417358398 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:43:02.546955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:43:11.830236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2052967548370361 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:43:21.920754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:43:32.050852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5820317268371582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:43:41.923363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5903639793395996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:44:02.877347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:44:12.078298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4684679508209229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:44:22.163308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:44:32.143872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5741276741027832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:44:42.097790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5884850025177002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:45:02.843150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:45:12.181704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2090051174163818 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:45:22.246602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:45:32.239175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5635054111480713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:45:42.262885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6039693355560303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:46:02.920223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:46:12.359338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2054169178009033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:46:22.420484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:46:32.599988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5670342445373535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:46:42.552934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55030d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.596158742904663 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:47:03.502193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:47:12.680684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.418778657913208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:47:22.735641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5589970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:47:32.722246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5993199348449707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:47:42.821934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5944247245788574 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:48:02.349416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5515a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:48:12.024198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2092461585998535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:48:21.997312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:48:32.035581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5907793045043945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:48:42.039777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6006498336791992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:49:03.125737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:49:12.254756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.440232515335083 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:49:23.744580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:49:32.208679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.527660608291626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:49:42.225008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5460030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5479986667633057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:50:02.891523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:50:12.466194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.445925235748291 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:50:22.360163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:50:32.389329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5576543807983398 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:50:42.391499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5865061283111572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:51:03.317537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:51:12.547985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54effd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4624767303466797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:51:22.572334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:51:32.659599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.568129062652588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:51:42.628466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.60528564453125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:52:03.281648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55278d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55278d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55278d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:52:12.761805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4397318363189697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:52:22.792370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:52:32.862113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5703010559082031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:52:42.844842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5460030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5939455032348633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:53:02.640778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:53:12.010343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4518768787384033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:53:22.055548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:53:32.030813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.568925380706787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:53:42.031720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6126596927642822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:54:02.994867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:54:12.150526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5469030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4572832584381104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:54:22.195706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:54:32.242729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.570633888244629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:54:42.196025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5993647575378418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:55:03.066985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:55:12.338661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5473030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.464160442352295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:55:22.324679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:55:32.369401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5724644660949707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:55:42.341238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6111934185028076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:56:03.028560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:56:12.529059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.440237283706665 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:56:22.533264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:56:32.551631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5652616024017334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:56:42.497996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5984039306640625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:57:03.205097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55388f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55388f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55388f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:57:12.615248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4419617652893066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:57:22.690517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55609f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:57:32.708797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54acfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5801310539245605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:57:42.653047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5902917385101318 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 08:59:02.974149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:59:12.007453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4616012573242188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 08:59:22.023077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 08:59:32.025762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.575103759765625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 08:59:42.032409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5966777801513672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:00:02.630901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:00:12.310324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5468030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.563936471939087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:00:22.183023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:00:32.203161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5716416835784912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:00:42.128071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4703404903411865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:01:03.518290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:01:13.020582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4366142749786377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:01:23.033427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb61ba790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61ba790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61ba790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:01:32.971851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5581915378570557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:01:43.003997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.589829683303833 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:02:02.576865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:02:12.145708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a8090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4529995918273926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:02:22.215253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55198d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55198d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55198d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:02:32.171439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.597060203552246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:02:42.270439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5960078239440918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:03:03.005949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:03:12.494828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4453344345092773 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:03:22.634021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:03:32.427732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5685880184173584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:03:42.460941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.592559814453125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:04:03.309948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:04:12.593639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cbf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.437490701675415 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:04:22.562382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:04:32.650530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598125696182251 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:04:42.639793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6013708114624023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:05:03.558484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:05:12.762028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4231152534484863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:05:22.834314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:05:32.807211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5763378143310547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:05:42.841889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54edfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6163265705108643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:06:02.453289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:06:11.946155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4465749263763428 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:06:21.997012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:06:31.997933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ee50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5806617736816406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:06:42.011708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6115055084228516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:07:02.747450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:07:12.221684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4367625713348389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:07:22.196317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:07:32.210581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5541532039642334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:07:42.170903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.576833724975586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:08:02.837095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:08:12.405962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4516057968139648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:08:22.383753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:08:32.348488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5917017459869385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:08:42.487463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.597501516342163 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:09:03.766808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:09:12.761343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4479269981384277 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:09:22.650613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:09:32.760041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5065627098083496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:09:42.740455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5467681884765625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:10:02.330310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:10:11.877193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4499688148498535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:10:21.877603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6182790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6182790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6182790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:10:31.919974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5632529258728027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:10:41.884589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6032569408416748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:11:02.691507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:11:12.001935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4486534595489502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:11:22.048393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ccad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ccad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ccad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:11:32.053890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549df70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5803420543670654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:11:42.071245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6062097549438477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:12:02.696460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:12:12.161357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4452106952667236 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:12:22.201268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5582970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:12:32.226536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5471030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.570634126663208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:12:42.253861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ad050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6064305305480957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:13:03.101772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:13:12.450047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4483351707458496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:13:22.415006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:13:32.405521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.574772596359253 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:13:42.514047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6155176162719727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:14:03.439480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:14:12.679960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4661436080932617 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:14:22.702983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:14:32.695372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5646030902862549 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:14:42.719316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5467030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5837557315826416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:15:02.530010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:15:11.931455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4829738140106201 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:15:21.924132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6166790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6166790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6166790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:15:31.927819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5703916549682617 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:15:41.894665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5994787216186523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:16:03.908526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5521870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:16:13.378846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3663458824157715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:16:23.436599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:16:33.466755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5785861015319824 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:16:43.370932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605860710144043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:17:03.291979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:17:12.524225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4461700916290283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:17:23.215951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:17:32.553078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5483030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6013295650482178 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:17:42.556730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6141078472137451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:18:03.231261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:18:12.655146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.217181921005249 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:18:22.740968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:18:32.796446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5769505500793457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:18:42.733655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6032121181488037 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:19:02.757696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:19:11.841126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457268476486206 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:19:21.890797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:19:32.079429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.579040765762329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:19:42.029606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6066646575927734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:20:02.770629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:20:12.247310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.455977201461792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:20:22.189164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:20:32.233735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.577521562576294 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:20:42.223132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6233277320861816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:21:02.966432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:21:12.438693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4471981525421143 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:21:22.393702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:21:32.462197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5701823234558105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:21:42.398421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6084845066070557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:22:02.997438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:22:12.535731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.455052137374878 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:22:22.682262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553eab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553eab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553eab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:22:32.620230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5460030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5772655010223389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:22:42.526046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5483030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6032791137695312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:23:03.356643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:23:12.748390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4529526233673096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:23:22.705148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:23:32.683077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5761375427246094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:23:42.724011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6108996868133545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:24:02.559268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:24:11.837724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4620544910430908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:24:21.921926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:24:31.978332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5692689418792725 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:24:41.882373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6210687160491943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:25:02.856329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:25:12.084963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4349050521850586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:25:22.057536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:25:32.055712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5590744018554688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:25:42.074799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bafd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5916838645935059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:26:02.548258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:26:12.224298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4716594219207764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:26:22.249959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55718b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55718b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55718b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:26:32.363477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5672333240509033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:26:42.245860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6045613288879395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:27:02.944451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:27:12.437835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4438426494598389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:27:22.411926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:27:32.420962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5440030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5849940776824951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:27:42.478923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5931744575500488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:28:03.082936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:28:12.662826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3493707180023193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:28:22.676035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:28:32.641842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5621488094329834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:28:42.643374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6087074279785156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:29:04.065125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:29:12.928710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4391694068908691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:29:22.831728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:29:32.845289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5643255710601807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:29:42.818663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5970122814178467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:30:02.440186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:30:11.998510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2102880477905273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:30:21.962514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55999d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:30:32.092760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5515151023864746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:30:42.024801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5853984355926514 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:31:02.867564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:31:12.164747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2009823322296143 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:31:22.218740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5501950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:31:32.198686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5870637893676758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:31:42.169852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6224372386932373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:32:02.777165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:32:12.303524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2082171440124512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:32:22.412613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:32:32.364956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.567765235900879 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:32:42.353362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5925085544586182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:33:02.983893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:33:12.421632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2110280990600586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:33:22.641380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:33:32.586403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5624043941497803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:33:42.618321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5846219062805176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:34:03.465913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:34:12.896129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4432523250579834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:34:22.828349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:34:32.844525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5841999053955078 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:34:42.905785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6070199012756348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:35:02.681800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:35:12.064128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586517810821533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:35:22.102761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:35:36.220896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5741887092590332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:35:43.951366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.607353925704956 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:36:02.615339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:36:12.037735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4541432857513428 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:36:22.228601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:36:34.766013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5718154907226562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:36:42.215434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605314016342163 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:37:02.833923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54be950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:37:12.428239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a2130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454777717590332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:37:22.336361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:37:32.477670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5812771320343018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:37:42.390917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5859456062316895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:38:07.345466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:38:16.857563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4439527988433838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:38:26.896628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:38:36.963797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5862820148468018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:38:46.901759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5922355651855469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:39:02.956338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55108d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55108d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55108d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:39:12.006505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2953391075134277 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:39:22.102147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55969f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:39:32.080344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.588277816772461 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:39:42.075302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb621c750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6208305358886719 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:40:02.696592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:40:12.336039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2108044624328613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:40:22.218747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:40:32.222250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.572164535522461 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:40:42.306412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5922996997833252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:41:03.216572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:41:12.410015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4596476554870605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:41:22.547693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55839b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:41:32.478152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a60d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6015734672546387 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:41:42.531542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.59393310546875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:42:03.162121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55269b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55269b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55269b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:42:12.616819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.208571195602417 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:42:22.661758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:42:32.691905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.600902795791626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:42:42.748279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a5e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5865728855133057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:43:02.768294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:43:11.937031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3002278804779053 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:43:21.916890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55589f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:43:31.910388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5464030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5664589405059814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:43:41.894693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.618870735168457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:44:02.828274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:44:12.017373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4673659801483154 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:44:22.086265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:44:32.193617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5725178718566895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:44:42.139128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6195120811462402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:45:02.907903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:45:12.281988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2146186828613281 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:45:22.351028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:45:32.303565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5879919528961182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:45:42.315210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6094441413879395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:46:02.928723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55199d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55199d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55199d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:46:12.435098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54adfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1989428997039795 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:46:22.473836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:46:32.506546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5585336685180664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:46:42.485273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5908336639404297 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:47:03.305958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:47:12.577504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2140460014343262 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:47:22.649863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:47:32.630281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5792253017425537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:47:42.696772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6034948825836182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:48:02.265630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:48:11.905892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2090072631835938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:48:21.894747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55838d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55838d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55838d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:48:31.911294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.059494972229004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:48:41.949480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6075270175933838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:49:03.058431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:49:12.163269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4538483619689941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:49:22.079563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:49:32.174589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fb1810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5194144248962402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:49:42.142445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5426254272460938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:50:02.773988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:50:12.244733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.439774990081787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:50:22.343056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55379b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55379b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55379b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:50:32.380489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5807170867919922 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:50:42.321599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6118049621582031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:51:03.086441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:51:12.423107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.449819564819336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:51:22.531154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:51:32.478549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.571214199066162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:51:42.515499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.586714744567871 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:52:03.143966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:52:12.597808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3190498352050781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:52:22.657032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55589d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55589d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55589d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:52:32.683451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5852940082550049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:52:42.789071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5459030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.612889289855957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:53:02.516945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:53:12.000360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3089427947998047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:53:22.014408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5f850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5f850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5f850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:53:31.985370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.585134744644165 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:53:41.986967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b04930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6036100387573242 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:54:02.969116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6219790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6219790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6219790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:54:12.239566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa07f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461191177368164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:54:22.138877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:54:32.289659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.563159704208374 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:54:42.172102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5927319526672363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:55:03.021948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:55:12.421862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54feeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.401304006576538 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:55:22.401960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:55:32.343513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.591062068939209 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:55:42.332223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.598388433456421 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:56:02.968747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:56:12.437363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2176740169525146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:56:22.555959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55928d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55928d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55928d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:56:32.535301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5913052558898926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:56:42.498418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5445030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.611177682876587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:57:03.303911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:57:12.604719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2819337844848633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:57:22.692472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:57:32.718339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5757954120635986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:57:42.682051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.60563063621521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 09:59:02.823824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:59:11.987442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4537363052368164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 09:59:21.994063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 09:59:31.985833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.573293685913086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 09:59:42.011737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.605590581893921 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:00:02.737516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55979f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:00:12.121343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3868672847747803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:00:22.293755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55728d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55728d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55728d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:00:32.164759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5806944370269775 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:00:42.195188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.640695571899414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:01:03.025584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55229b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55229b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55229b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:01:12.322404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552afd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2183825969696045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:01:22.379816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5576a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:01:32.352138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5635766983032227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:01:45.053012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb620d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6127500534057617 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:02:02.599498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:02:12.184158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2446272373199463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:02:22.299770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:02:32.202235
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5668306350708008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:02:42.346051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5478030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5819101333618164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:03:03.069872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5588190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:03:12.508621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1988449096679688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:03:22.512612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:03:32.526571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5903842449188232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:03:42.519531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5964710712432861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:04:03.318309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:04:12.748948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.469310998916626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:04:22.822498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5599990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:04:32.752496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5441030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.586618423461914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:04:42.707462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5980405807495117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:05:02.617472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:05:11.831533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5482030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.314197301864624 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:05:21.913689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:05:31.909866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5477030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5712072849273682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:05:41.907612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.602626085281372 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:06:02.512237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:06:12.093912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2148373126983643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:06:22.170977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:06:32.120182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5845954418182373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:06:42.084098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6331348419189453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:07:02.945250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:07:12.268851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.450899362564087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:07:22.272974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:07:32.319239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.599677324295044 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:07:42.232527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.607203722000122 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:08:02.820920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:08:12.388333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2068901062011719 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:08:22.386679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:08:32.396996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5836877822875977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:08:42.380528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.607762098312378 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:09:03.464731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:09:12.500639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4549896717071533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:09:22.553458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:09:32.612895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5648705959320068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:09:42.549684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5930414199829102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:10:03.198070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:10:12.652886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2172980308532715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:10:22.695463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:10:32.683724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5749180316925049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:10:42.782180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fafd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5973925590515137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:11:02.540688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55999b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:11:12.000589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2019174098968506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:11:22.046956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:11:31.962283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5916175842285156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:11:41.971234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5926895141601562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:12:02.621361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54da930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:12:12.078329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2175028324127197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:12:22.142882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:12:32.223343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5982811450958252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:12:42.250712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5908575057983398 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:13:03.139886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5570590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:13:12.363409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4098000526428223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:13:22.403715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:13:32.594806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5721652507781982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:13:42.603222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6118576526641846 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:14:03.487575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:14:12.843054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4707021713256836 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:14:22.802401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:14:32.811046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5679669380187988 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:14:42.731916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5865094661712646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:15:02.533960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:15:11.889877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2441926002502441 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:15:21.873321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:15:31.993359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.589822769165039 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:15:41.929767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6088721752166748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:16:02.606062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:16:12.042565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.194983959197998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:16:22.133220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:16:32.138775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5863440036773682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:16:42.113841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6138155460357666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:17:02.724128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:17:12.253589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2004852294921875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:17:22.284816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:17:32.378147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5871055126190186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:17:42.294648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.58797025680542 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:18:02.907886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:18:12.411252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.201303482055664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:18:22.466549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55549d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:18:32.496384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5662457942962646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:18:42.459110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5944862365722656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:19:03.794938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5578970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:19:12.575343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4563140869140625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:19:22.622961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:19:32.638359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.588089942932129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:19:42.617938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6239159107208252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:20:03.252118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:20:12.750480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.413060188293457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:20:22.746923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:20:32.848562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5323286056518555 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:20:42.762825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5849614143371582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:21:02.732222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:21:11.931392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4354305267333984 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:21:21.922718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:21:31.903674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5709459781646729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:21:41.940923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5873501300811768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:22:02.503140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55678d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55678d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55678d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:22:12.119557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.373122215270996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:22:22.151910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:22:32.117962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5381779670715332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:22:42.120280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5804626941680908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:23:02.856252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:23:12.263710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2482624053955078 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:23:22.391153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:23:32.290126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5511102676391602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:23:42.390434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6011698246002197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:24:03.052130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5500a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:24:12.531822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bde10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4152553081512451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:24:22.656535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:24:32.617337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5667290687561035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:24:42.700784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f715b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.585007905960083 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:25:02.442883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:25:11.891568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5797920227050781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:25:21.878281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:25:31.933334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5826857089996338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:25:41.812924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4583098888397217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:26:02.521174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:26:11.987443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2209253311157227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:26:22.178690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:26:32.060565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5587608814239502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:26:42.070769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.581571340560913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:27:02.832728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:27:12.173424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2555298805236816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:27:22.230740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:27:32.246522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5464484691619873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:27:42.248013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5876448154449463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:28:02.863699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:28:12.351846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551eef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.204505205154419 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:28:22.540374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:28:32.406797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f28a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.57059645652771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:28:42.401201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5702118873596191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:29:03.526773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:29:12.554783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451200008392334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:29:22.558117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:29:32.540527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5232737064361572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:29:42.652906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5391795635223389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:30:03.209784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:30:12.769443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.360567569732666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:30:22.766770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55579b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55579b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55579b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:30:32.863346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54edef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5297634601593018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:30:42.826784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5618488788604736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:31:02.647272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:31:12.062336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2862775325775146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:31:22.000674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:31:32.021463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5417354106903076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:31:41.999763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.552480697631836 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:32:02.673338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5563970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:32:12.257096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1943495273590088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:32:22.206972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:32:32.123397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f20b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5341129302978516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:32:42.120651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5804164409637451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:33:03.074710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:33:12.269997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4216203689575195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:33:22.284080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55888f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55888f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55888f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:33:32.370115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5300214290618896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:33:42.374381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5634357929229736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:34:03.073055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:34:12.470702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4271917343139648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:34:22.582828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:34:32.686009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5310328006744385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:34:42.689988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5551114082336426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:35:02.353882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:35:11.967898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5294716358184814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:35:21.863504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:35:31.926271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5374395847320557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:35:41.889859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.44793701171875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:36:02.598618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb663ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb663ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb663ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:36:12.180531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2095305919647217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:36:22.171937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:36:32.218428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5526623725891113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:36:42.260524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5565366744995117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:37:03.028401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:37:12.455468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4152016639709473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:37:22.386838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:37:32.458951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4826016426086426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:37:42.427056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.525698184967041 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:38:03.068957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:38:12.614679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2066035270690918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:38:22.594163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:38:32.608553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4999723434448242 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:38:42.642294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.538395881652832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:39:03.794391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:39:12.828476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4189660549163818 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:39:22.838058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:39:32.862506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5228288173675537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:39:42.848376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5459980964660645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:40:02.590499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:40:12.037837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3977043628692627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:40:22.026937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:40:32.043059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5002763271331787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:40:42.016079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549afd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5272679328918457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:41:02.852385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55919f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:41:12.159304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3906869888305664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:41:22.227453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:41:32.181292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5050549507141113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:41:42.210224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6232770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5292744636535645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:42:02.840847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:42:12.365398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2162728309631348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:42:22.371566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:42:32.363243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4940905570983887 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:42:42.418762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.543302059173584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:43:03.149005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:43:12.619301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.214543342590332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:43:22.600304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:43:32.605378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dafb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5261526107788086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:43:42.662115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5246126651763916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:44:02.641093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:44:11.829216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4150876998901367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:44:21.844676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:44:31.896839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5129475593566895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:44:41.830293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5249626636505127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:45:02.726628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55519f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55519f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55519f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:45:12.087820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4262335300445557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:45:22.009131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:45:32.087322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5270564556121826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:45:42.084162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5229101181030273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:46:02.698919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:46:12.265780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.409400463104248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:46:22.220850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:46:32.242551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4853627681732178 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:46:42.249494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5079593658447266 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:47:02.932405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5534950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:47:12.380162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2470881938934326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:47:22.570844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:47:32.433500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4894146919250488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:47:42.482960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5463030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5252199172973633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:48:03.015750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:48:12.677018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2189655303955078 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:48:22.782870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:48:32.662042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fbe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4864954948425293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:48:42.680678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5114233493804932 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:49:02.787320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:49:11.880546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4098122119903564 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:49:21.830452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:49:31.831809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5002639293670654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:49:41.861223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5300512313842773 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:50:02.311834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a48d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a48d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a48d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:50:12.037323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3654813766479492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:50:21.974114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:50:32.015275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5235681533813477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:50:42.062268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55330d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.510455846786499 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:51:02.870847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:51:12.211478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2315902709960938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:51:22.214756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:51:32.222425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5128400325775146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:51:42.340907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a32c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5351486206054688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:52:02.937532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:52:12.434965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2041447162628174 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:52:22.525234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:52:32.540356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5066747665405273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:52:42.553385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.520200252532959 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:53:03.439852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557b850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:53:12.736687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.309908151626587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:53:22.835056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:53:32.723540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5230677127838135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:53:42.832757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5236427783966064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:54:02.558903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:54:12.116667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4292311668395996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:54:22.020458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:54:31.982507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5445030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5079429149627686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:54:42.006339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.555755376815796 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:55:02.852035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:55:12.121803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ddfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.214329719543457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:55:22.200578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:55:32.208489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4824824333190918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:55:42.159480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.51499605178833 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:56:02.840948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:56:12.273067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2426753044128418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:56:22.425530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:56:32.304540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5063185691833496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:56:42.459022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5417118072509766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:57:03.257595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:57:12.572142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.213681936264038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:57:22.635440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:57:32.687048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.492762565612793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:57:42.683901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5284647941589355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 10:59:03.010227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5566930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:59:12.238231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4238312244415283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 10:59:22.030487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55999f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 10:59:32.101465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5036160945892334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 10:59:42.183669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5126094818115234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:00:02.824257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:00:12.339052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4007818698883057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:00:22.349049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:00:32.358995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.501863718032837 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:00:42.341261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5076406002044678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:01:02.980536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:01:12.463779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.412527084350586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:01:28.308641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:01:32.606914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4970178604125977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:01:44.392041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5285940170288086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:02:02.980844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:02:12.536987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4221117496490479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:02:25.105942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5537950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:02:32.597055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cffb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4926493167877197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:02:42.683360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fb49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5189704895019531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:03:02.387031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:03:11.880534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4130973815917969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:03:21.867886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:03:31.856009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.48982834815979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:03:41.983778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5123810768127441 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:04:02.763663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:04:12.144845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4148797988891602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:04:22.121190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:04:32.149860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61d3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4891207218170166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:04:42.191640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5248064994812012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:05:02.996174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:05:12.335868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.218559741973877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:05:22.358309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:05:32.315339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4861843585968018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:05:42.383374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.505852460861206 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:06:03.048358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:06:12.499513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2054202556610107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:06:24.344934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:06:33.031311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.371427059173584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:06:42.576433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6582590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.51786470413208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:07:03.373034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:07:12.881449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4094257354736328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:07:22.753964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:07:32.820539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4884529113769531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:07:42.781632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5203299522399902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:08:02.399181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:08:11.890052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2370715141296387 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:08:21.948179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:08:32.097489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.511880874633789 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:08:42.062767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5284051895141602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:09:03.049716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55499f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:09:12.197182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4135913848876953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:09:22.208711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:09:32.233478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.517805814743042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:09:42.229915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5189366340637207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:10:02.789457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:10:12.362633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.411656379699707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:10:22.401933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:10:32.403728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fd64f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5160315036773682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:10:42.418468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5309264659881592 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:11:03.249815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:11:12.558398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4180431365966797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:11:22.579291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:11:32.579911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5008742809295654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:11:42.576029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fb29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5249249935150146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:12:03.159529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:12:12.838208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3163869380950928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:12:22.738261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5504a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:12:32.822159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5073418617248535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:12:42.760733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5447092056274414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:13:02.560584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:13:11.857449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2987089157104492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:13:21.927372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:13:31.932799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5096497535705566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:13:42.005183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5360195636749268 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:14:02.946999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:14:12.253325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.428046703338623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:14:22.192376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:14:32.206921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5012080669403076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:14:42.224814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5322351455688477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:15:03.059780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55979b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:15:12.406068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.209803819656372 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:15:22.419016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55499d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:15:32.436948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5093162059783936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:15:42.439456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5297913551330566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:16:03.126105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:16:12.598724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2037277221679688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:16:22.651091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55418f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55418f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55418f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:16:32.563676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5049717426300049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:16:42.587078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.533250093460083 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:17:03.319874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:17:12.811648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4218826293945312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:17:22.786600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:17:32.816852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5446030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.541330337524414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:17:42.818584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.550377368927002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:18:02.432337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:18:11.977542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4129438400268555 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:18:22.068728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:18:31.994413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5200650691986084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:18:41.972608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5495030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5619657039642334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:19:03.159778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:19:12.123272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4403095245361328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:19:22.171206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:19:32.134154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5300049781799316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:19:42.131999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5490303039550781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:20:02.710709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:20:12.277822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61fe790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.405771017074585 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:20:22.287820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:20:32.293902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5049762725830078 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:20:44.523371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5441808700561523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:21:03.488248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:21:12.748511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.422208547592163 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:21:23.532167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:21:32.655018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5168395042419434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:21:42.714634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5399575233459473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:22:02.356588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:22:11.912839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2099390029907227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:22:21.844588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:22:31.955092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4935247898101807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:22:41.939199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5229756832122803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:23:02.912745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:23:12.095565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4191808700561523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:23:22.173828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:23:32.141566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5156288146972656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:23:42.103174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5260100364685059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:24:02.957689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:24:12.251884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4163942337036133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:24:22.319132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5592910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:24:32.322531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e50b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5312809944152832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:24:42.308536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5457828044891357 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:25:03.113434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:25:12.467203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4242398738861084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:25:22.542346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:25:32.513526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5388367176055908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:25:42.484051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.532494068145752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:26:03.044381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:26:12.626057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.362727165222168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:26:22.564138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:26:32.650272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.446875095367432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:26:42.630011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.563955545425415 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:27:03.433467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:27:12.772768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4086196422576904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:27:22.937949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:27:32.811117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4991240501403809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:27:42.768485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5242867469787598 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:28:02.327339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:28:11.891381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2064692974090576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:28:21.937535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:28:31.904554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5116660594940186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:28:41.902896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.547804832458496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:29:02.895076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:29:12.121842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4096705913543701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:29:22.143335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:29:32.140127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5136933326721191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:29:42.153134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.555044412612915 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:30:02.770340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:30:12.402892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4047558307647705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:30:22.379102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:30:32.357557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5229434967041016 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:30:42.269535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5333280563354492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:31:03.015655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:31:12.419302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4001247882843018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:31:22.446533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:31:32.470825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4985365867614746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:31:42.417777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5260488986968994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:32:03.212164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:32:12.594605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2235291004180908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:32:22.647938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:32:32.601579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5164093971252441 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:32:42.638140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aeb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5488555431365967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:33:03.537352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:33:12.770002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4089453220367432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:33:22.883749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:33:32.879998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5141313076019287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:33:42.822628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5434367656707764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:34:02.708904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:34:11.963193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eeff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4134407043457031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:34:21.952919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:34:31.971368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5057275295257568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:34:41.932127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.520261287689209 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:35:02.682109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:35:12.077844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4131052494049072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:35:22.128284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:35:32.149088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.516418218612671 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:35:42.118962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5375397205352783 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:36:02.757294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:36:12.260312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3958101272583008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:36:22.336167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:36:32.297974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.51649808883667 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:36:42.308439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5381278991699219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:37:03.152532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:37:12.430864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2173621654510498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:37:22.441352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:37:32.557113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5160810947418213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:37:42.524992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5312144756317139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:38:03.187429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:38:12.624589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55447b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2341506481170654 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:38:22.706423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:38:32.760894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6643e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5028431415557861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:38:42.665396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.529984474182129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:39:02.753883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
 val : 1 : upload photos already in processing! 
2025-12-03 11:39:20.129226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb65cceb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5206341743469238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:39:32.029382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5279905796051025 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:39:52.569882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5433082580566406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:40:03.205772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5561850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:40:12.736724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4205052852630615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:40:22.736099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55199f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55199f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55199f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:40:32.748922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.520270586013794 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:40:42.742060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5481619834899902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:41:02.611517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:41:11.922750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4230105876922607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:41:22.057881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:41:31.938234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5175108909606934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:41:42.021196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.557828426361084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:42:02.720382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:42:12.111300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.404829740524292 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:42:22.348146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:42:32.189889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5066697597503662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:42:42.207335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5427072048187256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:43:03.039799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:43:12.328291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4010910987854004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:43:22.485020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:43:32.375412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5212490558624268 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:43:42.356255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5668044090270996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:44:03.189213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:44:12.493702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4252991676330566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:44:22.521673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:44:32.592917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5026252269744873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:44:42.609941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.540771722793579 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:45:03.437798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:45:12.707509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4131710529327393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:45:22.850814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:45:32.775972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.532745599746704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:45:42.747483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5488264560699463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:46:02.369250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:46:11.901417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e00f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.199859619140625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:46:21.917311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:46:31.926768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.0934345722198486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:46:41.919853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54affd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5342514514923096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:47:02.764100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:47:12.084962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4107921123504639 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:47:22.097176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:47:33.615393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5123369693756104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:47:42.217353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5415358543395996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:48:02.893259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:48:12.418313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2013132572174072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:48:22.364202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:48:32.457250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5081708431243896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:48:42.377724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5442407131195068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:49:03.514538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:49:12.548723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4203319549560547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:49:24.112995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:49:32.649795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.528944492340088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:49:42.542245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5357639789581299 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:50:03.167832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5537a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:50:12.698951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5453030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4276561737060547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:50:22.741084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:50:32.819859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5218150615692139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:50:42.770878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5475091934204102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:51:02.570141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:51:11.924208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ae90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.41459059715271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:51:21.945835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:51:32.056739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5075664520263672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:51:41.994195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.534160852432251 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:52:02.592508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:52:12.244317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5483030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2599356174468994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:52:22.183321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6621eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6621eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6621eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:52:32.139809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5072822570800781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:52:42.262778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5627477169036865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:53:03.042100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:53:12.352119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2240397930145264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:53:22.481777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:53:32.416864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f59570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5085973739624023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:53:42.472238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5388193130493164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:54:03.371221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55429d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55429d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55429d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:54:12.584394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.418187141418457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:54:22.623588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:54:32.701356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.505777359008789 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:54:42.612660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5468740463256836 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:55:03.391699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:55:12.822333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ac0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.305201530456543 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:55:22.773347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55708d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55708d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55708d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:55:32.761447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61eb770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5201144218444824 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:55:42.793164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5395257472991943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:56:02.395552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:56:11.969651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2006127834320068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:56:21.979104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5563a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:56:32.026298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.523341417312622 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:56:42.013047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5417115688323975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:57:02.658513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:57:12.175127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3991425037384033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:57:22.246043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:57:32.184216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5305304527282715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:57:42.172469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.536811113357544 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 11:59:03.316690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5598950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:59:12.454837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a86f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.430448293685913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 11:59:22.425070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 11:59:32.475977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5192890167236328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 11:59:42.559680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fc7750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5457794666290283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:00:03.047952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:00:12.669807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4265718460083008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:00:22.789748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55219d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55219d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55219d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:00:32.706026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5137503147125244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:00:42.727647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5553336143493652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:01:02.517226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:01:11.871016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4180395603179932 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:01:21.977481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5537950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:01:32.046140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5115702152252197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:01:41.998050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
 val : 1 : upload photos already in processing! 
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 20.430197954177856 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:02:12.096058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4061050415039062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:02:22.121868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6239770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6239770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6239770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:02:32.159092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ef90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.527527093887329 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:02:42.342808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.557729721069336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:03:03.116275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8c530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8c530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8c530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:03:12.429457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2192203998565674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:03:22.531003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:03:32.574154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5279786586761475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:03:42.480209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5296106338500977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:04:03.481142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:04:12.707874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4173369407653809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:04:22.717733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:04:32.751800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.51798415184021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:04:42.734370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5615108013153076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:05:02.494874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:05:11.845680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4094555377960205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:05:21.939420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:05:31.953510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5313024520874023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:05:41.892350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5489897727966309 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:06:02.455833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55489d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:06:12.049631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4242181777954102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:06:22.017732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:06:32.099879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5313994884490967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:06:42.097585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5793125629425049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:07:02.977844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55629f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55629f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55629f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:07:12.257716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.40763258934021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:07:22.316488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:07:32.273948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5136690139770508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:07:42.398258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.546370267868042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:08:03.018260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:08:12.511182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fdf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2079331874847412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:08:22.623108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:08:32.652914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5232524871826172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:08:42.610611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5455360412597656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:09:03.777649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:09:12.751849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4169886112213135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:09:22.794916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:09:32.809107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5371794700622559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:09:42.802527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5764122009277344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:10:02.414205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:10:12.057813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4226884841918945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:10:21.992993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5e5d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5e5d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5e5d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:10:31.979183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5331850051879883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:10:41.989362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5481102466583252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:11:02.803391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:11:12.168567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5476030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4154834747314453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:11:22.187325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:11:32.185191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5297131538391113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:11:50.427381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4632089138031006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:12:03.100060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5537a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:12:12.571987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ece50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3785502910614014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:12:22.590332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:12:32.603706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.511838674545288 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:12:42.590934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5555510520935059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:13:03.410349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:13:12.693223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2603137493133545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:13:22.860170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:13:32.839469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5261006355285645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:13:42.750810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.551062822341919 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:14:02.514761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5546890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:14:11.886820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557de70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4166064262390137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:14:21.905712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:14:32.025023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5180284976959229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:14:41.911470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cefd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5655384063720703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:15:04.298132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:15:12.169858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4152677059173584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:15:22.101179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:15:32.082613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5343847274780273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:15:42.071839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5647780895233154 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:16:02.654556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:16:12.177469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.421534538269043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:16:22.269188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:16:32.244103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54affd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5313572883605957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:16:43.658592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5427138805389404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:17:02.459977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55308f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55308f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55308f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:17:11.821228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3285365104675293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:17:21.877641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:17:31.834825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5034799575805664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:17:41.846941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5525140762329102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:18:02.470131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:18:11.931834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.243614673614502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:18:22.014374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:18:32.133028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5210041999816895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:18:45.971561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5443030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5637056827545166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:19:03.200976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5546930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:19:12.052691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4201760292053223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:19:22.140197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:19:32.098833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5505280494689941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:19:42.103318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5415458679199219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:20:02.681142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:20:12.274841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4215383529663086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:20:22.341845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:20:32.290109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5612618923187256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:20:42.328587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.548353910446167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:21:03.178029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:21:12.455070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4178154468536377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
 val : 1 : upload photos already in processing! 
2025-12-03 12:21:30.001718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:21:42.502863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5446641445159912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:22:03.174706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f27730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f27730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f27730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:22:12.674758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5446030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4148292541503906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:22:22.579449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb624f7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb624f7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb624f7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:22:32.628829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4250762462615967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:22:42.731581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4455986022949219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:23:02.544766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:23:12.112467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4210784435272217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:23:22.038708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:23:31.948572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5215981006622314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:23:41.961064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.566629409790039 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:24:02.911248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:24:12.184258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.423227071762085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:24:22.200368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:24:32.163669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5326592922210693 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:24:42.141729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.577793836593628 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:25:02.914643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:25:12.252745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4204990863800049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:25:22.365312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5566570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:25:32.239711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5274436473846436 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:25:42.310826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.558119535446167 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:26:03.040165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:26:12.524823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4202539920806885 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:26:22.488989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:26:32.492705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5305535793304443 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:26:42.477252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5606210231781006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:27:03.198113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:27:12.642221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.25661301612854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:27:22.631669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:27:32.685120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5407466888427734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:27:42.690172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f586b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5652735233306885 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:28:02.381380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:28:11.820108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2029228210449219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:28:21.947368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:28:31.848735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5191447734832764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:28:41.867462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.555983066558838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:29:03.220625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:29:12.091861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4133021831512451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:29:22.108173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:29:32.071493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5271787643432617 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:29:42.064438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.573298692703247 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:30:02.698178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:30:12.206123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4100136756896973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:30:22.260716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:30:32.300768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5199134349822998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:30:42.197868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5586762428283691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
 val : 1 : upload photos already in processing! 
2025-12-03 12:31:14.865495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:31:29.457623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:31:39.506066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4827556610107422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:31:56.169554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2765049934387207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:32:02.742214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:32:12.394069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.529832363128662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:32:22.280474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:32:35.351149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4180543422698975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:32:43.242063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.450005054473877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:33:03.089155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:33:12.400142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2231616973876953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:33:22.416445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:33:38.243818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.3112261295318604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:33:42.463060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5690698623657227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:34:02.897926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:34:14.109293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2189726829528809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:34:22.223125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:34:32.236242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.527188777923584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:34:42.273622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5387206077575684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:35:03.113005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55318f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55318f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55318f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:35:12.400110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3672752380371094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:35:22.367278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:35:32.565395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5387063026428223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:35:42.426893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5575039386749268 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:36:03.043922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:36:12.589148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2153804302215576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:36:22.582470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55865d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55865d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55865d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:36:32.576413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5119013786315918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:36:42.594611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5647656917572021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:37:03.411982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:37:12.763750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.437018871307373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:37:22.779059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5510930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:37:32.788831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5462546348571777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:37:42.762772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5600106716156006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:38:02.405960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:38:11.976266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4303345680236816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:38:21.897817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:38:31.883688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5396852493286133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:38:41.907287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f02670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.574873685836792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:39:02.975178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:39:12.086785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4282498359680176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:39:22.231082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:39:32.101443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5305156707763672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:39:42.087939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.561659336090088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:40:02.745129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:40:12.231752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4063947200775146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:40:22.256590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:40:32.286500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5215802192687988 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:40:42.332303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5652520656585693 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:41:03.260066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5583990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:41:12.440852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4008042812347412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:41:22.492384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5552910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:41:32.491004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5435848236083984 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:41:42.647531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.551518201828003 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:42:03.239582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:42:12.757466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.209043025970459 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:42:22.871324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:42:32.877077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5339539051055908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:42:42.935415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5633165836334229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:43:02.753242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:43:12.114498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2264621257781982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:43:22.116974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:43:32.090235
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5469353199005127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:43:42.166098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.551820993423462 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:44:03.053596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:44:12.419089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dff50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4291033744812012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:44:22.421386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:44:32.378781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.540604591369629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:44:42.362514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.556990146636963 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:45:03.191342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:45:12.468622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2035434246063232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:45:22.514737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:45:32.498400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.546943187713623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:45:42.504176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5697524547576904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:46:03.191713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:46:12.620150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2168984413146973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:46:22.668933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:46:32.741333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5417492389678955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:46:42.689235
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5511186122894287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:47:02.479086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:47:11.867443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2152516841888428 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:47:21.927062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:47:31.856421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5350465774536133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:47:41.863660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5478026866912842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:48:02.469293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:48:11.969197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2053568363189697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:48:22.040239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f2c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f2c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f2c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:48:32.027585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5359320640563965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:48:42.021839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5472865104675293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:49:03.114829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:49:12.250533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6225750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4188387393951416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:49:22.254242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:49:32.226759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5709638595581055 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:49:42.252461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5740010738372803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:50:02.842815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:50:12.328569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1990818977355957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:50:22.460289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:50:32.434743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5584051609039307 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:50:42.418274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5905144214630127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:51:03.185608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:51:12.500143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1980464458465576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:51:26.214105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:51:32.623493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5197513103485107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:51:42.628024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5459749698638916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:52:03.300111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:52:12.751375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2070000171661377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:52:22.772736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:52:32.831038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55720b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5108468532562256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:52:42.847627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5524866580963135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:53:02.749095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:53:12.031252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2018659114837646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:53:22.126965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:53:32.078577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.541792392730713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:53:42.074647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5821993350982666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:54:02.847229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:54:12.823961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2084698677062988 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:54:22.312054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:54:32.280294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553de70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4643170833587646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:54:50.649939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb651efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2878494262695312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:55:02.483534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:55:11.828049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1954271793365479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:55:21.888558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:55:31.895854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4727272987365723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:55:41.871968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.334268569946289 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:56:02.467550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:56:11.962524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2215213775634766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:56:22.028424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5573910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:56:36.878339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.237837553024292 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:57:02.541760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:57:12.990774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5447030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2084200382232666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:57:21.950431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:57:31.878475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552cfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3106012344360352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:57:41.888571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.322618007659912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 12:59:03.187520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:59:12.441724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553deb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3907835483551025 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 12:59:22.288980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 12:59:32.395097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5273573398590088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 12:59:42.432090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 10.617961406707764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:00:02.924895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:00:12.540148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2062742710113525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:00:22.640459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:00:32.591315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f029d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.490556240081787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:00:42.562053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5093374252319336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:01:03.486958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:01:12.795701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2108938694000244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:01:22.657021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:01:32.735396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.395885705947876 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:01:42.829043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4019615650177002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:02:02.572789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:02:11.997480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2327921390533447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:02:22.097767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:02:32.041620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4059031009674072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:02:42.004772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3370378017425537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:03:02.711720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:03:12.275385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.218623161315918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:03:22.243433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:03:32.241060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.347945213317871 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:03:42.260200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549af90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.337900161743164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:04:03.066627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:04:12.314261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2160401344299316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:04:22.456310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5530910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:04:32.499151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3235197067260742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:04:42.438097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3354861736297607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:05:03.236784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:05:12.557794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2065925598144531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:05:22.727223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:05:32.572041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.312408208847046 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:05:42.640822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.340329647064209 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:06:03.231741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:06:12.797298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2047874927520752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:06:22.883605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5599870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:06:32.869523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3236711025238037 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:06:42.802576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3338968753814697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:07:04.694037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:07:14.209904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f19ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2126922607421875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:07:24.181102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:07:34.174283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3056817054748535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:07:44.232383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3207910060882568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:08:02.848529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:08:12.480943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2134032249450684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:08:22.395942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:08:32.454962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3252298831939697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:08:42.362867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3803496360778809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:09:03.365696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:09:12.441463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2271442413330078 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:09:22.580974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:09:32.646278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3085498809814453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:09:42.581533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3477468490600586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:10:03.187613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:10:12.742539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2071819305419922 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:10:22.831721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:10:32.789458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2955069541931152 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:10:42.690662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3300411701202393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:11:02.431815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55689b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55689b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55689b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:11:11.933750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2352683544158936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:11:22.002870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:11:31.963758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3000380992889404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:11:41.920067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3102538585662842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:12:02.390994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:12:12.100742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2110610008239746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:12:22.043483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:12:32.137888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2948942184448242 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:12:42.131260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3220982551574707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:13:02.832833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:13:12.296773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2066271305084229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:13:22.271377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:13:32.376365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d17d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.303088665008545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:13:42.399555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3256418704986572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:14:03.247728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5599910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:14:12.683831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4060633182525635 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:14:22.579800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:14:32.569374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5095572471618652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:14:42.718310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.540041208267212 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:15:02.467681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:15:11.782441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2089552879333496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:15:21.883568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55389d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55389d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55389d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:15:31.922136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.51509428024292 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:15:41.933891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5560247898101807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:16:02.504241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55000d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55000d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55000d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:16:12.058580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2169499397277832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:16:22.127834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:16:32.095845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5690960884094238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:16:42.185457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6188220977783203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:17:03.001100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:17:12.287864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2064478397369385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:17:22.355417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:17:32.322751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.511725664138794 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:17:42.434450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.6882498264312744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:18:03.116194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:18:12.559286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.214172601699829 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:18:22.734432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:18:32.758239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5645396709442139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:18:42.642436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a11b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5962562561035156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:19:03.765059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:19:12.701385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2167482376098633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:19:22.828754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:19:32.793481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5476861000061035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:19:42.796079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5339734554290771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:20:02.336901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:20:11.935192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2073559761047363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:20:21.990883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:20:31.983094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4222400188446045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:20:42.023670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.545999526977539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:21:02.769419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:21:12.139155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2104873657226562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:21:22.221313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:21:32.250078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.374359130859375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:21:42.240502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4015607833862305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:22:02.790131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b20f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b20f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b20f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:22:12.323774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2013747692108154 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:22:22.378134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55499b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:22:32.451659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4380214214324951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:22:42.412662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4350228309631348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:23:03.116277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:23:14.106671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.831203460693359 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:23:24.390933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:23:33.091797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d07b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2772886753082275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:23:42.561192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2452850341796875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:24:03.394048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:24:12.811297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2047779560089111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:24:22.838553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:24:32.832564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3231980800628662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:24:42.825036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3205695152282715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:25:02.660692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:25:11.962071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5439030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2019546031951904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:25:21.963361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:25:32.049774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3049046993255615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:25:42.056160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61e3770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3531570434570312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:26:02.631301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:26:12.192101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1952149868011475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:26:22.231319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:26:32.243614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3120934963226318 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:26:42.186140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3204760551452637 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:27:02.930772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5542a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:27:12.305892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2032363414764404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:27:22.369367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:27:32.333576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2979986667633057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:27:42.365492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3292670249938965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:28:02.895428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55379f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55379f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55379f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:28:12.574634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2022202014923096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:28:22.510355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:28:32.552660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.313032627105713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:28:42.559573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3166959285736084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:29:03.377494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:29:12.697647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2332475185394287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:29:22.826336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:29:32.759949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3064661026000977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:29:42.746827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.393800973892212 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:30:02.297365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:30:11.920372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3548221588134766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:30:21.877603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:30:31.973222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2549285888671875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:30:41.944824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2297191619873047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:31:02.883378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:31:12.149033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1995670795440674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:31:22.187193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:31:32.193737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fd88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3163530826568604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:31:42.293771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4222102165222168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:32:02.840954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5530990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:32:12.394561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2041926383972168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:32:22.471164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:32:32.465271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.307058572769165 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:32:42.535577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.343024730682373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:33:03.198520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55278b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55278b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55278b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:33:12.741338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2083582878112793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:33:22.696809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:33:32.688863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4996201992034912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:33:42.692578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5451583862304688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:34:02.545926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:34:11.791963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2076389789581299 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:34:21.830666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:34:31.872272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5593254566192627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:34:41.830876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4499657154083252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:35:02.434543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55259d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:35:11.942899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.209538221359253 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:35:22.082405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:35:32.036827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.481151819229126 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:35:41.988846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.500166416168213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:36:02.595711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:36:12.091879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2021701335906982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:36:22.162415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:36:32.229440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.329453706741333 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:36:42.250444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3584449291229248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:37:02.954434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:37:12.318997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2015833854675293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:37:22.440309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55258f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55258f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55258f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:37:32.410919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3002710342407227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:37:42.481610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ff1710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3393373489379883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:38:02.966761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:38:12.623421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.201561689376831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:38:22.655643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:38:32.640701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f28730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3282082080841064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:38:42.640151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.324833631515503 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:39:03.717446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55968d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55968d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55968d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:39:12.767531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4599988460540771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:39:22.804149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:39:32.885628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5125360488891602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:39:42.891824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5353927612304688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:40:02.498113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:40:12.010105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2436554431915283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:40:22.026784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5568930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:40:32.025423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5707168579101562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:40:42.055043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5987811088562012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:41:02.815364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558a810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:41:12.216085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2186641693115234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:41:22.265024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:41:32.260985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551de90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5642859935760498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:41:42.318996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb650bf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.582611083984375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:42:03.021149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:42:12.429421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5453030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2214961051940918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:42:22.495271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:42:32.463379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.545994520187378 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:42:42.506403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5793259143829346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:43:03.361977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:43:12.645122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.234426498413086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:43:22.763833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:43:32.750145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.553009271621704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:43:42.662262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.7194290161132812 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:44:03.613943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:44:12.799677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb62117d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457324743270874 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:44:22.836481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:44:32.856883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5738015174865723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:44:42.849706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5954339504241943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:45:02.633820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:45:11.966816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2312602996826172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:45:22.031851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:45:32.027589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.578033447265625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:45:42.029508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6078906059265137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:46:02.629833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:46:12.119876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2135863304138184 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:46:22.314558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:46:32.194146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5554654598236084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:46:42.237962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5853431224822998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:47:03.069682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:47:12.351790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.21488618850708 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:47:22.408336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:47:32.534811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5501437187194824 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:47:42.513622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5964221954345703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:48:03.120917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:48:12.588812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2109954357147217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:48:22.686189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:48:32.953410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5490765571594238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:48:42.715207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5818910598754883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:49:02.765386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:49:11.914306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4608118534088135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:49:21.929418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:49:31.962096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5426082611083984 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:49:41.957008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5542562007904053 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:50:02.604004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:50:12.069380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.208261489868164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:50:22.135666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5569970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:50:32.197796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5650124549865723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:50:42.101702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5475030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5990641117095947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:51:02.989749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:51:12.227808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3326025009155273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:51:22.289542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:51:32.296726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5529592037200928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:51:42.292680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6032533645629883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:52:02.884502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:52:12.432368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2128605842590332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:52:22.497412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:52:32.424434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.581294059753418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:52:42.440438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6024887561798096 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:53:03.224784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:53:12.549856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2069263458251953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:53:22.779043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:53:32.621689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.580132246017456 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:53:42.666197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5807089805603027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:54:02.549958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:54:11.795187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4777374267578125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:54:21.851392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:54:31.954468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.852626085281372 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:54:41.933105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.554088830947876 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:55:02.776611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:55:12.072715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2233870029449463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:55:22.102063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:55:32.193475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5743739604949951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:55:42.114533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5956783294677734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:56:02.721552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:56:14.575141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55740d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.483208417892456 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:56:22.226978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:56:32.277023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5556633472442627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:56:42.301063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5463030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6012005805969238 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:57:03.051601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581b70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581b70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581b70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:57:12.418908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4518938064575195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:57:22.425215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:57:32.436321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4503772258758545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:57:43.625342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 7.3710808753967285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 13:59:02.891178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55698b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55698b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55698b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:59:13.177949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4421544075012207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 13:59:22.004579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 13:59:31.993490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5150866508483887 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 13:59:41.972508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5585966110229492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:00:02.691172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:00:13.969924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61af7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2088384628295898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:00:22.261418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:00:32.154147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5474030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5828781127929688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:00:42.128391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.553161382675171 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:01:02.923316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:01:12.255829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2087607383728027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:01:22.365418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:01:32.306207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5262854099273682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:01:42.304394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ad050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.3559577465057373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:02:02.881542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55838f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55838f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55838f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:02:12.441599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2205455303192139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:02:22.468863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:02:32.467290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5167913436889648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:02:42.543933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5273783206939697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:03:03.299450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:03:17.393338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2383968830108643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:03:22.762716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:03:32.811403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55950b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5140929222106934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:03:45.252978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5134966373443604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:04:03.153950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:04:12.534600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2156739234924316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:04:22.519706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:04:32.413657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5127458572387695 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:04:42.471850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5387911796569824 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:05:03.355225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:05:12.654054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.204087734222412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:05:22.702742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:05:32.640519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.503469705581665 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:05:42.633261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5248148441314697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:06:03.116990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:06:12.736431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2130446434020996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:06:22.811586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:06:32.802122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4407267570495605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:06:42.785650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.340083122253418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:07:02.643887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:07:11.908421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2030398845672607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:07:21.930166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:07:32.035078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3882837295532227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:07:41.920775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4142465591430664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:08:02.516588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55059d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55059d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55059d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:08:12.030835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2146060466766357 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:08:22.109984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:08:32.097986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3040204048156738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:08:42.108371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.330648422241211 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:09:03.015754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:09:12.266456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556be90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.465355396270752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:09:22.291347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:09:32.283984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.526139736175537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:09:42.303804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a30b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5419285297393799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:10:02.914469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:10:12.445034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4636907577514648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:10:22.565231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:10:32.534147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5972909927368164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:10:42.538861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6162135601043701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:11:03.451972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:11:12.668362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4509589672088623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:11:22.712286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:11:32.711992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.580976963043213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:11:42.694415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.612177848815918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:12:02.362530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:12:11.847100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.459395170211792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:12:21.863320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:12:31.865264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6062228679656982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:12:41.887661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.638016700744629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:13:02.523706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:13:11.996293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454648733139038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:13:22.043854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:13:32.083620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5924756526947021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:13:42.066884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bab30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6188445091247559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:14:02.881883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:14:12.158945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4670705795288086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:14:22.197620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:14:32.222544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5755815505981445 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:14:42.191542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cff90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6216089725494385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:15:02.867342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:15:12.311699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4567945003509521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:15:22.402893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:15:32.397018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5971062183380127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:15:42.345076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.613109827041626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:16:03.039029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:16:12.460294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcc5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4596984386444092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:16:22.508277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5598550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:16:32.540599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f9aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5916051864624023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:16:42.535096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6381642818450928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:17:03.349923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:17:12.777030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4587538242340088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:17:22.844607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:17:32.716380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5897490978240967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:17:42.703287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6234405040740967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:18:02.286321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:18:11.951805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61e17b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4590964317321777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:18:21.866992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:18:31.860157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55517d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5739574432373047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:18:42.020349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.643788576126099 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:19:02.961789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:19:12.197535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.453598976135254 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:19:22.175609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:19:32.291729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.5353951454162598 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:19:42.348959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.636915922164917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:20:03.204207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:20:12.443702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64b8f30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.374723672866821 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:20:22.421362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:20:32.462357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4713234901428223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:20:42.491717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.500704050064087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:21:03.522917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:21:12.765055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4675590991973877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:21:22.696489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:21:32.833600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.58905029296875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:21:45.564823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6530001163482666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:22:03.086408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:22:12.676286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aafd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4723925590515137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:22:22.822348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5512a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:22:32.601576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4682514667510986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:22:42.820166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5275959968566895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:23:04.176964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:23:12.072051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3623383045196533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:23:22.052523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:23:32.059336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.597116470336914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:23:50.216859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6105077266693115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:24:02.964395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:24:12.325643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4645819664001465 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:24:22.372598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:24:32.466519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.56797194480896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:24:42.420918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6150760650634766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:25:03.274704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:25:12.622284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3885746002197266 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:25:22.685538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:25:32.652811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5786933898925781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:25:42.683895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6073222160339355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:26:02.281167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5503890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:26:11.809003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3764405250549316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:26:21.810064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:26:31.883562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ae90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5866284370422363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:26:41.896824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6295273303985596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:27:02.785984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:27:12.047073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c90b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4511888027191162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:27:22.090060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55269f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55269f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55269f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:27:39.652710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5781114101409912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:27:42.076993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6148898601531982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:28:02.558233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:28:12.157272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:28:32.172924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.313384771347046 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:28:42.273538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6295337677001953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:29:03.429033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:29:12.464255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4638147354125977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:29:22.437000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:29:32.382499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55400b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461754322052002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:29:42.394668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4967942237854004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:30:03.181640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:30:12.690500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5311484336853027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:30:22.570482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:30:32.602730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6057050228118896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:30:42.612344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6123666763305664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:31:03.361026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:31:12.718928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5471030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2103581428527832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:31:22.770165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55678d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55678d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55678d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:31:32.889741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5734949111938477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:31:42.782646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61a07b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6243896484375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:32:02.405375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:32:11.984705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2243313789367676 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:32:22.030046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:32:31.914208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.587674617767334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:32:41.957297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6101570129394531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:33:02.768243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5546990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:33:12.046839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f17810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.213043451309204 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:33:22.135910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:33:32.146601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5874192714691162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:33:42.073417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6231515407562256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:34:02.841156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:34:12.194510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4818553924560547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:34:22.249956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55064b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55064b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55064b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:34:32.266279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5840473175048828 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:34:42.228382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6135749816894531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:35:02.945600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:35:12.393971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54deed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4435944557189941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:35:22.320269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:35:32.398727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.613917350769043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:35:42.426940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6488089561462402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:36:03.038724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:36:12.505684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.227616548538208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:36:22.544401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55639b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:36:32.590001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5938949584960938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:36:42.633546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.629342794418335 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:37:03.459081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:37:12.738455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2184808254241943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:37:22.771294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55671b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55671b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55671b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:37:32.833442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa0810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6112139225006104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:37:42.785410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6097054481506348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:38:02.390313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5573990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:38:11.952857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2197151184082031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:38:21.918061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:38:31.904787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6021621227264404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:38:41.933168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6584928035736084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:39:02.997507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:39:12.120928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4778625965118408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:39:22.177932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5533930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:39:32.114582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.534811019897461 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:39:42.140234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.549344778060913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:40:02.760624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:40:12.236248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2261745929718018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:40:22.309802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:40:32.317258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5787932872772217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:40:42.312780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.621983289718628 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:41:03.151903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:41:12.375478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2335295677185059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:41:22.477309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:41:32.466755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5277254581451416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:41:42.616973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5388338565826416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:42:03.210763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:42:12.750488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2174649238586426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:42:23.704867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:42:32.873188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f2a4d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5849242210388184 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:42:42.886731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5eff850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6425538063049316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:43:02.610525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:43:12.008536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4840774536132812 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:43:21.974416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5509a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:43:32.113884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6100828647613525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:43:42.102654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.389350175857544 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:44:02.952354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55698b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55698b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55698b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:44:12.286878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4715485572814941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:44:22.402780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55519b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55519b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55519b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:44:32.374124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5261974334716797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:44:42.252279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5399034023284912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:45:03.072057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:45:12.400718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.220029354095459 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:45:22.459820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:45:32.516540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5328502655029297 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:45:42.495086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5352864265441895 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:46:03.231807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
 val : 2 : upload photos already in processing! 
2025-12-03 14:46:28.308173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
2025-12-03 14:46:28.313497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:46:42.792000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:47:02.494319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:47:12.007919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:47:32.031686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:47:53.852150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:48:02.498616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:48:22.133442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:48:32.452644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:48:54.108197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:49:03.162958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:49:12.459809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4754712581634521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:49:22.384603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:49:32.399451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4995481967926025 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:49:42.352937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4903953075408936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:50:03.021735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:50:12.996308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:50:24.646233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:50:32.485296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aef50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3808224201202393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:50:42.564198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5203251838684082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:51:03.544524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:51:12.745564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3664908409118652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:51:25.111030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:51:33.884915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3597893714904785 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:51:42.704890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.380523920059204 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:52:06.099573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:52:15.769488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3646702766418457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:52:25.831717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:52:35.806843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb653df10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4839062690734863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:52:51.570752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.529137134552002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:53:03.407857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:53:12.623949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.3140370845794678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:53:22.719641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:53:32.928516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:53:42.855536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5056138038635254 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:54:02.728695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:54:14.728236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.915693759918213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:54:22.060608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:54:32.160203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3797507286071777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:54:41.978603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.409048318862915 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:55:02.948939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:55:12.276062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3661761283874512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:55:24.564231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55889f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:55:32.504914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4978349208831787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:55:42.295932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5220575332641602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:56:02.964181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5546910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:56:12.452958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4079368114471436 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:56:22.445960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:56:32.450196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4850614070892334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:56:42.517993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5120410919189453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:57:03.283772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:57:12.651662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3652129173278809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:57:22.767807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:57:32.694255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4833149909973145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:57:42.690351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5192210674285889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 14:59:02.750120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:59:12.210949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3851149082183838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 14:59:22.095934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 14:59:32.083832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4823334217071533 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 14:59:42.146870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5371499061584473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:00:02.743545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55269d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55269d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55269d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:00:12.297102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.500281810760498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:00:22.628850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:00:32.419156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4049334526062012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:00:47.797089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.378312349319458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:01:02.650614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:01:12.942243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.375976800918579 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:01:22.017697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:01:39.734942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.3706417083740234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:02:02.301146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:02:11.852742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4921021461486816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:02:21.883828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5556950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:02:31.819617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.570387840270996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:02:41.927722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3777666091918945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:03:02.949974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5514990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:03:12.161045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3711435794830322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:03:22.146570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:03:32.557054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.311997175216675 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:03:42.140351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5814194679260254 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:04:03.013546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:04:12.245823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.385857105255127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:04:22.299238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:04:32.402303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.478661298751831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:04:42.318232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5baa8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.06158709526062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:05:04.154102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:05:13.425476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.9543612003326416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:05:23.922058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:05:32.401912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.359480381011963 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:05:42.447588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5233025550842285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:06:03.018724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55609d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55609d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:06:12.672860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3838391304016113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:06:22.536848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5552910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:06:32.599999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3865249156951904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:06:42.536265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4027323722839355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:07:03.434718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fc79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fc79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fc79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:07:12.741189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2706563472747803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:07:25.793173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:07:34.514132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.495908260345459 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:07:42.906205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4927244186401367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:08:02.474431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:08:12.303607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:08:23.802650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:08:32.072614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3777706623077393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:08:42.093457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4180309772491455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:09:03.380640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:09:12.293361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3768870830535889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:09:22.491369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:09:32.361199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.48757004737854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:09:42.325388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5255517959594727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:10:02.952025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55588d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55588d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55588d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:10:12.440228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2145195007324219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:10:22.518139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1e690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1e690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1e690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:10:32.520835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4907128810882568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:10:42.489164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.272112846374512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:11:03.290425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:11:12.754691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2083866596221924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:11:22.636009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:11:39.249268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
 val : 1 : upload photos already in processing! 
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.216814994812012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:12:02.735753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:12:13.096340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.628323793411255 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:12:27.888548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:12:34.363865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.859595537185669 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:12:42.399659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.250821590423584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:13:04.010476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:13:12.472126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4346656799316406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:13:22.360572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:13:32.406904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55056f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.377507209777832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:13:42.350825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f70d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4091644287109375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:14:04.270653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:14:13.690048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:14:23.668046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:14:33.636910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.154677391052246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:14:43.753747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5164945125579834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:15:02.437655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:15:11.870363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3796558380126953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:15:21.939861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:15:34.851241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.382441759109497 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:15:42.080271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4024269580841064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:16:02.729583
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:16:12.252236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4187543392181396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:16:22.281909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:16:32.365746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5402438640594482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:16:42.390867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5131301879882812 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:17:03.223082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5556a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:17:12.481745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1367740631103516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:17:22.648086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:17:32.549630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4878368377685547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:17:42.498381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5291008949279785 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:18:03.036996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:18:12.625940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1755311489105225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:18:22.660492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:18:32.671665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5168135166168213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:18:42.660517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 10.47560739517212 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:19:03.857822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:19:12.798693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3742358684539795 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:19:22.850316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:19:32.932666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4388189315795898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:19:42.806013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447826623916626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:20:02.482565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cfab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:20:11.910511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1398589611053467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:20:22.104289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:20:32.083634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4924631118774414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:20:41.989648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5148546695709229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:21:02.865726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:21:12.105593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1443357467651367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:21:22.176477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ddb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ddb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ddb10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:21:32.224463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4760510921478271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:21:42.230566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 8.140586137771606 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:22:02.516470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:22:12.023093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.130324125289917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:22:22.007635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:22:32.077098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3769114017486572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:22:42.104496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5050673484802246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:23:02.805212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:23:22.284515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:23:39.492510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.381484031677246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:23:42.181814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3967046737670898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:24:02.969499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:24:12.417019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1706724166870117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:24:22.460718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:24:32.547818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bdfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.485887050628662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:24:42.450558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.534040927886963 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:25:03.248669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5567870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:25:12.556097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.119969367980957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:25:22.622938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:25:32.671542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4376773834228516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:25:42.626228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4548358917236328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:26:03.312675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:26:12.813628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5460030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1401338577270508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:26:22.873570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:26:32.847131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4940264225006104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:26:42.880128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.512681245803833 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:27:02.724508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55548d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55548d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55548d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:27:11.991735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2112457752227783 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:27:22.126962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:27:32.030801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4169714450836182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:27:42.064695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4465677738189697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:28:02.723830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:28:12.171008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1379408836364746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:28:22.234829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:28:32.229659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4212868213653564 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:28:42.233090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4352734088897705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:29:03.660496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d28d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:29:12.389226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1237194538116455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:29:22.454946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:29:32.418440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4735136032104492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:29:42.527463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.528329610824585 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:30:04.623645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:30:14.164488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1377427577972412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:30:24.207963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5560ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:30:34.278803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5202970504760742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:30:44.222640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5248527526855469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:31:03.019881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:31:12.317798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bb08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1429359912872314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:31:22.332749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:31:32.383616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.44952392578125 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:31:42.472946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4881126880645752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:32:03.121924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:32:12.578522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1414177417755127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:32:22.676816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:32:32.694761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5098695755004883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:32:42.671590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5461549758911133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:33:02.463248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55198f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55198f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55198f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:33:11.825194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1449558734893799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:33:21.889224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:33:31.876095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4275991916656494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:33:41.901700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4499855041503906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:34:02.751695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5570a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:34:12.159736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3939390182495117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:34:22.112817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:34:32.054888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.41719388961792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:34:42.089711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4540200233459473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:35:02.989394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55709b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:35:12.238550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5464030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1347978115081787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:35:22.267933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:35:32.280056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4301402568817139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:35:42.275674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.455113410949707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:36:02.822197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:36:12.369794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1765499114990234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:36:22.474105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:36:32.420343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4884681701660156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:36:42.525883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5307505130767822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:37:03.369388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:37:12.643767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.130741834640503 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:37:22.725780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:37:32.701156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4228601455688477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:37:42.683460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4410436153411865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:38:02.398070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:38:11.787149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1358320713043213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:38:21.874105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55009f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55009f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55009f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:38:31.853659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5053699016571045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:38:41.831161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.517951250076294 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:39:02.971617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:39:12.015722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1430413722991943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:39:22.018590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:39:32.101010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4832704067230225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:39:42.101313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4995112419128418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:40:02.678794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:40:12.233010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1472835540771484 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:40:22.246904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:40:32.295677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4379615783691406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:40:42.242438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4516489505767822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:41:03.010012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:41:12.395246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1551189422607422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:41:22.497158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:41:32.448341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4263498783111572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:41:42.438349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4528529644012451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:42:03.041896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:42:12.551315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55310b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1365983486175537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:42:22.588088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f08f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:42:32.584846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4332783222198486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:42:42.615912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4643123149871826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:43:03.352542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5599a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:43:12.750171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1266844272613525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:43:22.794528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:43:32.818947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.419865608215332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:43:42.796259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4460015296936035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:44:02.588260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:44:12.086697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2293529510498047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:44:22.134770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:44:32.027092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447850227355957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:44:41.988759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.463636875152588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:45:02.607569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:45:12.245182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1390750408172607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:45:22.103486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:45:32.302534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4130470752716064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:45:42.357167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454653024673462 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:46:02.907304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5518930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:46:12.431624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1301748752593994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:46:22.600225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:46:32.530925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.498551845550537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:46:42.569719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5184762477874756 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:47:03.382321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:47:12.784911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1393089294433594 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:47:22.806547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:47:32.730434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.505570411682129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:47:45.918712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5051612854003906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:48:02.487618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:48:11.968155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f536f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1373045444488525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:48:22.032971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:48:32.038011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4317193031311035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:48:42.050624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4617478847503662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:49:03.130949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:49:12.227048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.142700433731079 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:49:22.243215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:49:32.219009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ceed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.414154291152954 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:49:42.220727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f44a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.1733930110931396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:50:02.826101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:50:12.316001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1335084438323975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:50:22.408002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:50:32.499396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4993131160736084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:50:42.485185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5280632972717285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:51:03.347706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fca390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fca390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fca390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:51:12.537692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1408298015594482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:51:22.593555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:51:32.655968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4069955348968506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:51:42.617620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.440983533859253 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:52:03.292928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:52:12.771528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.137791395187378 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:52:22.784466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:52:32.796474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5098686218261719 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:52:42.777526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5363144874572754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:53:02.582438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55779b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55779b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55779b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:53:11.911414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1267545223236084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:53:21.979380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:53:31.944893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4432473182678223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:53:41.989831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.456024169921875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:54:02.806481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:54:12.159112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.23295259475708 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:54:22.218336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5500510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:54:32.201108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4367735385894775 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:54:42.261122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4724197387695312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:55:03.110969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:55:12.328365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.123976230621338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:55:22.433042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:55:32.524568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4336843490600586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:55:42.518783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4679591655731201 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:56:03.119249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:56:12.653355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.141167402267456 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:56:22.702221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:56:32.741026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4192233085632324 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:56:42.688460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4468727111816406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:57:02.504690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:57:11.862162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54edfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1265969276428223 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:57:21.947754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:57:31.996429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4106948375701904 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:57:42.000768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5441030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4383461475372314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 15:59:03.238039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:59:12.349143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1431117057800293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 15:59:22.333718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 15:59:32.365917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4312176704406738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 15:59:42.352405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5453030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447758674621582 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:00:02.935473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:00:12.467981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.136080026626587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:00:22.543673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:00:32.526828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4092247486114502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:00:42.593886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5486030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4234628677368164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:01:03.401336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:01:12.721380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.140103816986084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:01:23.613162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:01:32.857303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fcfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4908041954040527 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:01:42.847252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5077953338623047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:02:02.424492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55029f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55029f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:02:12.104159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.142387866973877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:02:22.017432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:02:32.012674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dcff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4087107181549072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:02:44.214532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3850622177124023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:03:03.010900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:03:12.496156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1280653476715088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:03:22.427712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:03:32.443705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4245359897613525 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:03:42.414610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4298748970031738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:04:03.005727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:04:12.573818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1334352493286133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:04:22.593319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:04:32.559275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3765544891357422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:04:42.732878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.299668550491333 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:05:02.488076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:05:11.837876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.138411283493042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:05:21.907829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5557990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:05:31.977695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2338528633117676 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:05:41.978730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.367830514907837 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:06:02.557530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:06:12.154540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fe8750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1410610675811768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:06:22.259649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:06:32.238584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2351534366607666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:06:42.269538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3439960479736328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:07:03.046953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:07:12.377481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1352527141571045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:07:22.512243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55749f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:07:32.460695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3589165210723877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:07:42.473421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55250b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.330246925354004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:08:03.032652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:08:12.595879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1415307521820068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:08:22.658822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:08:32.649129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.293381690979004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:08:42.625645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54feed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.311452865600586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:09:03.724630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:09:12.796087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.171614408493042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:09:22.786675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:09:32.841075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4569542407989502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:09:42.811417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.0056073665618896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:10:02.435459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:10:12.019310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ef90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1284213066101074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:10:21.997372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55698f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55698f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55698f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:10:32.095516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4156501293182373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:10:42.112935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.936981678009033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:11:02.881343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:11:12.264352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1310725212097168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:11:22.295633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:11:32.290682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eae70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4335453510284424 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:11:42.399249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4463975429534912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:12:02.800565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55469f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:12:12.496048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1428780555725098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:12:24.585944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:12:32.543554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1843721866607666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:12:42.554978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2696306705474854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:13:03.251478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5573870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:13:12.666183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1302876472473145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:13:22.898609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:13:32.719281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.428309679031372 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:13:42.732237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4469716548919678 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:14:03.230022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:14:11.978970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1840875148773193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:14:21.920893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:14:31.909387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4211649894714355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:14:41.863798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bafb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4427127838134766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:15:02.736198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:15:11.946719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1462068557739258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:15:21.985402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5501910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:15:32.133295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.397451639175415 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:15:42.112312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.45383620262146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:16:02.630020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:16:12.225115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cee70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1290972232818604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:16:22.294804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:16:32.261932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.386655330657959 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:16:42.306056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4499485492706299 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:17:03.081909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:17:12.396848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1208703517913818 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:17:22.555921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:17:32.471511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.237807273864746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:17:42.508271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bcff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4050049781799316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:18:03.114956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:18:12.660888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c20d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1370761394500732 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:18:25.649145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:18:32.750097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3907794952392578 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:18:42.694144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2372865676879883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:19:02.702607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:19:11.860053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3861584663391113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:19:21.872895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54faa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:19:31.881208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4297964572906494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:19:41.888464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4556562900543213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:20:02.545313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55669d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:20:12.029241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3804891109466553 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:20:22.088515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:20:32.072131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5075762271881104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:20:42.041431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5122404098510742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:21:02.868568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5510890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:21:12.206907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f3d570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.330836296081543 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:21:22.223485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:21:32.221152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5160908699035645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:21:42.234174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.532186508178711 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:22:02.912453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:22:12.469591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1518843173980713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:22:22.442464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:22:32.388507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4776315689086914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:22:42.477027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5295720100402832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:23:03.379135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:23:12.585648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.161290168762207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:23:22.666926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:23:32.789172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4985566139221191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:23:42.651677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.503767728805542 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:24:03.554214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:24:12.806196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3918898105621338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:24:22.898554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55018f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55018f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55018f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:24:32.909747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4913735389709473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:24:42.819689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5335948467254639 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:25:02.655402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55109f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55109f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55109f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:25:11.937554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5473030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3102726936340332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:25:22.004457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:25:31.971698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4963786602020264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:25:41.970926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5300841331481934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:26:02.529856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551f890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:26:12.106328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.123643398284912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:26:22.164507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:26:32.153550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5055642127990723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:26:42.137530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55137f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5325844287872314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:27:03.021839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:27:12.288636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5498ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2585651874542236 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:27:22.299195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:27:32.348628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55517b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4839301109313965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:27:42.376398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5389599800109863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:28:02.964122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:28:12.598664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1305720806121826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:28:22.553834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:28:32.592066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.499711036682129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:28:42.618848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5131561756134033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:29:03.617836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:29:12.850951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3865950107574463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:29:22.905207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:29:32.791714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.485100269317627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:29:42.920251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5224628448486328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:30:02.474082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:30:12.010869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1390924453735352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:30:22.151914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:30:32.161930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4938795566558838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:30:42.070801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4993140697479248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:31:02.952509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:31:12.384383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a37d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1446080207824707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:31:22.293864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5530a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:31:32.409524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4689409732818604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:31:42.343443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5442030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.340059995651245 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:32:02.989884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:32:12.459039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1392507553100586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:32:22.561535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:32:32.515440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4934494495391846 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:32:42.553373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5385711193084717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:33:03.363024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:33:12.755742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.133824110031128 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:33:22.709007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e48d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e48d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e48d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:33:32.769124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4312520027160645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:33:42.717993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4638464450836182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:34:02.651625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:34:11.962991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.384272575378418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:34:21.897589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:34:31.898551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ffb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454742431640625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:34:41.879529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.484400749206543 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:35:02.717253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:35:11.996369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554eb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1362011432647705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:35:22.071548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:35:32.055230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4771325588226318 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:35:42.132068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa74b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5172064304351807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:36:02.954395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:36:22.212383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:36:32.167859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:36:42.230869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:37:15.000276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
2025-12-03 16:37:15.027792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:37:22.455978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:37:42.443415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:38:03.129878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:38:12.689980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:38:22.667206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:38:42.669824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4116082191467285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:39:02.700277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:39:11.886302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3922135829925537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:39:21.892043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:39:31.935561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4744501113891602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:39:42.071714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.524763822555542 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:40:02.816618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb623e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb623e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb623e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:40:12.267801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aeff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.491410493850708 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:40:22.239029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:40:32.256094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5482030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4449126720428467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:40:42.241479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.410979986190796 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:41:03.260025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:41:12.549558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2889964580535889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:41:22.589400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:41:32.520141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4959001541137695 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:41:42.601780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5234615802764893 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:42:03.259901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:42:12.830490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.138399362564087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:42:22.885927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:42:32.735080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4890363216400146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:42:42.743737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5210022926330566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:43:02.423602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:43:11.893074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1441447734832764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:43:21.886214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:43:31.949443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4206552505493164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:43:41.985879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4488918781280518 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:44:02.896141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55619b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:44:12.096217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3891782760620117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:44:22.208502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:44:32.192400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4739725589752197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:44:42.136897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.518052577972412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:45:02.958764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55789b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55789b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55789b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:45:12.251366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2140862941741943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:45:22.291041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55948d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55948d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55948d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:45:32.336226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4997727870941162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:45:42.363520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.102763414382935 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:46:02.964132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:46:12.491090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1358530521392822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:46:22.574422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:46:32.558525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4934680461883545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:46:42.870539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5233280658721924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:47:02.621932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cda30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:47:12.107309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1360619068145752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:47:22.049417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb61a2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61a2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61a2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:47:32.013204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.462862253189087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:47:42.093003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4672212600708008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:48:02.722669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:48:12.199577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1356799602508545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:48:22.301155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:48:32.286365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.503528356552124 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:48:42.262947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.535569429397583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:49:03.385991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:49:12.455194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.397850751876831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:49:22.400535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:49:32.471149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4215924739837646 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:49:42.457035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.443234920501709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:50:03.148416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55399b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55399b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55399b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:50:12.578557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1489143371582031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:50:22.652931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:50:32.599697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b59870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.490126132965088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:50:42.694781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.539876937866211 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:51:02.408557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:51:11.787950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1335358619689941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:51:21.824987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:51:31.931442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4512665271759033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:51:41.912880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4563560485839844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:52:02.592226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5541950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:52:12.019310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1654155254364014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:52:22.110892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:52:32.094632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4831180572509766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:52:42.094481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5303609371185303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:53:02.737340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:53:12.259041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1483838558197021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:53:22.305532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:53:32.281375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4373064041137695 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:53:42.260470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4473192691802979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:54:03.136026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:54:12.451045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3819634914398193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:54:22.607293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5595990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:54:32.450989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5121800899505615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:54:42.609872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5213940143585205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:55:03.561486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:55:12.722776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2340562343597412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:55:22.778184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:55:32.873340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4899978637695312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:55:42.881364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5146143436431885 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:56:02.579502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:56:12.004442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.130894660949707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:56:22.033034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:56:32.197544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.426605463027954 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:56:42.042616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4466657638549805 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:57:02.934306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb64f3f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64f3f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64f3f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:57:12.176452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1469998359680176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:57:22.208101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55128f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:57:32.409054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.438148021697998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:57:42.336205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4620356559753418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 16:59:03.839299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:59:12.778795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3833298683166504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 16:59:22.797234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5588910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 16:59:32.684052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4731481075286865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 16:59:42.714693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.7907495498657227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:00:02.294281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:00:11.795532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1422467231750488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:00:21.821125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:00:31.881695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a50f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4475486278533936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:00:41.899534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4567809104919434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:01:02.575649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:01:12.041207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.135206937789917 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:01:25.964136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:01:32.071260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4234890937805176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:01:42.067341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4294230937957764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:02:15.724305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:02:25.026750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1456897258758545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:02:35.144366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:02:45.112548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4243266582489014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:02:55.202030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.434114694595337 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:03:03.011177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54feab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:03:12.300066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1397278308868408 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:03:22.346608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:03:32.479966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fdf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4142258167266846 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:03:42.369085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.445967435836792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:04:03.096226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5595950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:04:12.511404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3816077709197998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:04:22.547580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:04:32.555780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4430491924285889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:04:42.506578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4276955127716064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:05:03.438826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:05:12.781948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4016079902648926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:05:22.778279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:05:32.655972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fbef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3824238777160645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:05:42.636297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.416651964187622 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:06:02.295152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:06:11.842092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1428651809692383 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:06:22.058941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:06:31.915197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5009486675262451 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:06:41.936936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5462030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5178048610687256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:07:02.632058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:07:12.064751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.123863935470581 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:07:22.165875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:07:32.130233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.417382001876831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:07:42.117217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.458918809890747 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:08:02.748878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:08:12.350427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1344082355499268 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:08:22.435247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:08:32.309057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4110641479492188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:08:42.364999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4262819290161133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:09:03.572339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:09:12.607773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.312727689743042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:09:22.566797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:09:32.629325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4111828804016113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:09:42.626596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.427978277206421 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:10:05.590412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55219f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55219f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55219f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:10:14.976005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1349854469299316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:10:25.136173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:10:35.116662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4300501346588135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:10:45.184593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4503493309020996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:11:02.984906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:11:12.253596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.132145643234253 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:11:22.312540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:11:32.405992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4685328006744385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:11:42.353077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.517979383468628 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:12:02.778406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:12:12.414272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1389505863189697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:12:22.519747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:12:32.506338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1888926029205322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:12:42.494576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.217442274093628 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:13:03.278160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5554950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:13:12.634505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1278696060180664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:13:22.692507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:13:32.743437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb618d790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2727341651916504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:13:42.742956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4050345420837402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:14:02.385180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:14:11.910194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2683665752410889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:14:21.938147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:14:31.944140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4134697914123535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:14:41.964293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4283981323242188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:15:02.784160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:15:12.238793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2422146797180176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:15:22.157988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:15:32.106628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f8a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2308695316314697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:15:42.130897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3152594566345215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:16:02.798377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f597f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f597f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f597f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:16:12.314496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.147878885269165 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:16:22.473251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:16:32.418741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6602d90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.291823387145996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:16:42.393867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2901546955108643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:17:03.163051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:17:12.483364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1369304656982422 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:17:22.542641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:17:32.551185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2587671279907227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:17:42.596667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2679901123046875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:18:03.088020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:18:12.719901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5489030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1340584754943848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:18:22.725221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:18:32.763008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.244565725326538 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:18:42.808484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2597625255584717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:19:02.602866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:19:12.021373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.365485668182373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:19:22.552972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:19:31.962163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4374678134918213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:19:42.034848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4550068378448486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:20:02.647519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:20:12.229602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5098872184753418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:20:22.234642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:20:32.229205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4699156284332275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:20:42.162721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4122543334960938 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:21:02.988289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f50870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f50870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f50870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:21:12.333480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5448030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1446335315704346 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:21:22.429613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:21:32.461451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5362522602081299 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:21:42.522119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5387382507324219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:22:03.114465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54faa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:22:12.569493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.138537883758545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:22:22.756596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:22:32.767642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4315927028656006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:22:42.763923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4713788032531738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:23:02.655780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:23:11.859598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.152282476425171 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:23:21.915256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:23:31.949240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ccfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.500581979751587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:23:42.015093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5085482597351074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:24:02.965923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:24:12.102609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5482030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.380490779876709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:24:22.170907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:24:32.211416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.46852707862854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:24:42.198443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4945752620697021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:25:02.952061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:25:12.367237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1359243392944336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:25:22.494244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:25:32.429648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.432967185974121 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:25:42.436337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4639830589294434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:26:03.045640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:26:12.528925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1467857360839844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:26:22.694181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:26:32.596608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4344933032989502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:26:42.753372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451200246810913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:27:02.530785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:27:11.862297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f70410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1357731819152832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:27:21.907864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:27:31.961514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4200780391693115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:27:41.906436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ce90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4366929531097412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:28:02.513547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:28:12.026119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1359076499938965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:28:22.172002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55829d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:28:32.072372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3459300994873047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:28:42.087675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.274083137512207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:29:03.121445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:29:12.237166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1626596450805664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:29:22.476729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55998d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55998d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:29:32.296880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.423102617263794 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:29:42.280323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.45705246925354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:30:02.839367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:30:12.374670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1464974880218506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:30:22.465312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:30:32.521300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ac050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4239952564239502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:30:42.420248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4534187316894531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:31:03.178573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:31:12.630747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.133094072341919 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:31:22.592512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb655bf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb655bf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb655bf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:31:32.622882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4568805694580078 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:31:42.660995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4594566822052002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:32:03.258849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:32:12.863511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1294734477996826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:32:22.896468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:32:32.822228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.432776927947998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:32:42.923932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4531700611114502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:33:02.730570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55979b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:33:12.049037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1505558490753174 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:33:22.151096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:33:32.188216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4230413436889648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:33:42.095305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4518988132476807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:34:02.966133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:34:12.207938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1668179035186768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:34:22.235006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:34:32.273077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4381523132324219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:34:42.257489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.474712610244751 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:35:02.973126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:35:12.386525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1350886821746826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:35:22.443108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:35:32.452091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4195470809936523 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:35:42.474928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4383864402770996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:36:03.086701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:36:12.555949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1282029151916504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:36:22.627664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5512990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:36:32.672158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2362239360809326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:36:42.665589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6627550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2071778774261475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:37:02.375913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:37:11.835277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1647346019744873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:37:21.966754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:37:31.941874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.236358404159546 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:37:41.906806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.470978021621704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:38:02.522222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:38:12.082644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1364588737487793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:38:22.001386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55979d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:38:32.143048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3187756538391113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:38:42.056791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2387828826904297 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:39:03.193058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:39:12.216099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.371133804321289 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:39:22.283606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5581950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:39:32.291800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4248242378234863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:39:42.284776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457977294921875 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:40:02.952248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:40:12.410952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5492030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.216012954711914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:40:22.428998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:40:32.487150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4456217288970947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:40:42.476790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5126252174377441 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:41:03.242027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:41:12.628862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f63f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1386070251464844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:41:22.662479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:41:32.646376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4754517078399658 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:41:42.780942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.494737148284912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:42:02.490122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55459d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:42:11.953242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.145054578781128 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:42:21.913594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54afab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:42:32.013151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4280130863189697 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:42:41.947834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.478846549987793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:43:02.640735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:43:12.022742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1464760303497314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:43:22.110993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:43:32.112439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.442647933959961 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:43:42.081659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4740769863128662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:44:02.979258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:44:12.407289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3576085567474365 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:44:22.380818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:44:32.232163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4338274002075195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:44:42.256914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4652190208435059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:45:02.902060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:45:12.385599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1510396003723145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:45:22.450544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:45:32.520018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461028814315796 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:45:42.494342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5101048946380615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:46:03.051567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:46:12.664904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.147514820098877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:46:22.653863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:46:32.723758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4486472606658936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:46:42.824719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4684574604034424 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:47:02.642321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:47:11.935193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2332098484039307 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:47:21.994581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb655bf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb655bf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb655bf50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:47:31.995782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4515376091003418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:47:42.016610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4871833324432373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:48:02.681150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:48:12.120129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1430461406707764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:48:22.174750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:48:32.177512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.44661283493042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:48:42.184871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.465308666229248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:49:03.474796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:49:12.367805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3550331592559814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:49:22.503403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55279d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:49:32.343919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4297130107879639 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:49:42.379074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5467030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447277307510376 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:50:03.026700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55059f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:50:12.474424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.145383358001709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:50:22.556684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:50:32.549439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5492030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4383001327514648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:50:42.581890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554cef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4689862728118896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:51:03.220616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:51:12.803387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1437404155731201 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:51:22.870527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5570930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:51:32.737253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446021556854248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:51:42.801746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4817957878112793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:52:02.494864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:52:11.957169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1489684581756592 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:52:21.994188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:52:32.002830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556cfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4647977352142334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:52:41.919933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4571964740753174 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:53:02.756358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:53:12.017958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.13645339012146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:53:22.081751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5595a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:53:32.218383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4527957439422607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:53:42.218046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4852139949798584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:54:03.081926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:54:12.329751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3549270629882812 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:54:22.373496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:54:32.376919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4171452522277832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:54:42.362587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4411098957061768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:55:03.048782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:55:12.446468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1306798458099365 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:55:22.547969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:55:32.556503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4223716259002686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:55:42.592125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4557926654815674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:56:03.234362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:56:12.771666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1460447311401367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:56:22.835594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:56:32.817302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.426586627960205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:56:42.760330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4471259117126465 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:57:02.575332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb6535f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6535f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6535f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:57:11.871063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555def0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1348364353179932 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:57:21.952584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:57:31.941922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4299628734588623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:57:41.954365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4480836391448975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 17:59:03.064621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:59:12.345661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3456308841705322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 17:59:22.479853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 17:59:32.255956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4431540966033936 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 17:59:42.278520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.464930534362793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:00:03.013855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:00:12.443197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4493050575256348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:00:22.450380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:00:32.538685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4002199172973633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:00:42.457279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3865129947662354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:01:03.296071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:01:12.608072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1365656852722168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:01:22.748786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5573a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:01:32.723326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4077024459838867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:01:42.829377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.449598789215088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:02:02.491902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55618b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55618b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55618b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:02:11.940747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.139725923538208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:02:22.075528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55159d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:02:32.145923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4394121170043945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:02:42.071367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4454598426818848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:03:02.944901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f382b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f382b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f382b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:03:12.191013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1397488117218018 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:03:22.198892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:03:32.297824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4395806789398193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:03:42.282509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4488487243652344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:04:03.121802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:04:12.379399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3739993572235107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:04:22.402825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:04:32.401648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4369754791259766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:04:42.482207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4883465766906738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:05:03.230065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:05:12.639617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3324024677276611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:05:22.638032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5524950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:05:32.616022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4124932289123535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:05:42.632080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a00d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4333665370941162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:06:03.217610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55149d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55149d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55149d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:06:12.764415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3539483547210693 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:06:22.848765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55629b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55629b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55629b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:06:32.863628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4230189323425293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:06:42.836018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4400124549865723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:07:02.523737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5584930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:07:11.999573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3713176250457764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:07:22.101513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55839b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55839b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:07:32.049556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4165000915527344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:07:42.052792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4488685131072998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:08:02.649898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:08:12.195295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a22c90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3503568172454834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:08:22.234297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:08:32.195571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4175870418548584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:08:42.204286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4573945999145508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:09:03.407071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:09:12.490218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3392000198364258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:09:22.351391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5589910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:09:32.418465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4322383403778076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:09:42.450777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61af790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4545423984527588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:10:03.065435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:10:12.572084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3547546863555908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:10:22.621813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54da910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:10:32.588303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4074642658233643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:10:42.601220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447685718536377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:11:03.421195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:11:12.791607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3668828010559082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:11:22.824280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:11:32.777335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55047d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4358973503112793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:11:42.765528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.436291217803955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:12:02.392810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55979f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:12:11.866611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5dd09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3221004009246826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:12:21.937130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:12:31.975680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4177343845367432 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:12:41.955969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4469971656799316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:13:02.757353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:13:12.069653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.344118356704712 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:13:22.122630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:13:32.160581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ef30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4213171005249023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:13:42.146865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4341471195220947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:14:02.979523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:14:12.366149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3430747985839844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:14:22.366371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55158d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55158d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55158d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:14:32.391987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4096009731292725 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:14:42.364436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61fd7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4736196994781494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:15:03.141551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:15:12.508509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5faf390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3171570301055908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:15:22.552489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55608d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55608d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55608d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:15:32.515187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4373424053192139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:15:42.543149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4656462669372559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:16:03.108884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb64c6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64c6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64c6f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:16:12.676566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2269282341003418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:16:22.717180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55209b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55209b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:16:32.708827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4346904754638672 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:16:42.716732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4378314018249512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:17:02.587697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:17:11.884848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.340972900390625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:17:21.887993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:17:31.995959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4260854721069336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:17:41.881309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.442892074584961 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:18:02.459358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:18:12.062258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2268471717834473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:18:22.054161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:18:32.093212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4279656410217285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:18:42.135764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4641220569610596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:19:03.224701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55318d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55318d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55318d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:19:12.283688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3498265743255615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:19:22.359051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:19:32.268504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.426236867904663 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:19:42.329401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4706194400787354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:20:02.921823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:20:12.431264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1483445167541504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:20:22.580390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:20:32.490225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4120762348175049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:20:42.612347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb64acf70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4563989639282227 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:21:03.491417
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54da950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:21:12.754852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.255774736404419 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:21:22.789863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:21:32.845133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.419262409210205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:21:42.771191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4194464683532715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:22:02.325601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:22:11.911716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.142174482345581 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:22:21.944483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b5b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:22:31.947939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4207661151885986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:22:41.997314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4425065517425537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:23:02.932136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:23:12.166474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1361439228057861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:23:22.192804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:23:32.131011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4167265892028809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:23:42.265172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4458856582641602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:24:03.137538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55749f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:24:12.416341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3262789249420166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:24:22.438461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:24:32.449295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4458718299865723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:24:42.459930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4552435874938965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:25:03.169181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55478d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55478d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55478d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:25:12.656145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1413047313690186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:25:22.670442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5507150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:25:32.758778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4156630039215088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:25:42.637635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4721438884735107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:26:03.263933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:26:12.751988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.135861873626709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:26:22.790985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:26:32.785503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4150326251983643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:26:42.841014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4468648433685303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:27:02.569840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:27:11.949107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1407811641693115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:27:22.038429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:27:32.015744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3975129127502441 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:27:42.057379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4459571838378906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:28:02.685912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:28:12.147987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.148538589477539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:28:22.195981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55498b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55498b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55498b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:28:32.337889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.410672903060913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:28:42.205990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4363634586334229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:29:03.297546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:29:12.516786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.336040735244751 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:29:22.376200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5590a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:29:32.403679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4012210369110107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:29:42.426190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4248130321502686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:30:03.099716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:30:12.648266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1361002922058105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:30:22.642868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:30:32.612723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4083285331726074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:30:42.656121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4455814361572266 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:31:02.411095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:31:11.823547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1323843002319336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:31:21.795027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:31:31.871014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.418175220489502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:31:41.941993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.46201491355896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:32:02.506689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:32:12.082567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1540842056274414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:32:22.155384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:32:32.155137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.430393934249878 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:32:42.105351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4582452774047852 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:33:03.091785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:33:12.249359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2220637798309326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:33:22.368114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:33:32.333117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fcfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4280776977539062 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:33:42.235606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4389443397521973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:34:03.083792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:34:12.455823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3469128608703613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:34:22.473674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:34:32.453371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4392280578613281 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:34:42.442430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4617805480957031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:35:03.227650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:35:12.489127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.143913745880127 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:35:22.589017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5534a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:35:32.623344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4302470684051514 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:35:42.619844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4594380855560303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:36:03.148933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:36:12.747480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1452744007110596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:36:22.837941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:36:32.838651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4170465469360352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:36:42.761835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4512951374053955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:37:02.704744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55139f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55139f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55139f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:37:11.975434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1514561176300049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:37:21.928628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:37:31.940540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ce30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.43160080909729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:37:41.948056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586660861968994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:38:02.575759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5511970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:38:12.044375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.165907621383667 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:38:22.064664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:38:32.119065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4230244159698486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:38:42.103775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.456815242767334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:39:02.926777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:39:12.225201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3390367031097412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:39:22.312334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:39:32.302563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4442310333251953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:39:42.318225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4702072143554688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:40:02.870272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:40:12.445937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1314802169799805 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:40:22.489217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:40:32.474738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4360241889953613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:40:42.525378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4509503841400146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:41:03.157546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5574910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:41:12.657607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1364014148712158 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:41:22.709500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:41:32.811067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4385807514190674 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:41:42.782672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.469022512435913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:42:02.362678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:42:11.970182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1437511444091797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:42:21.938174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:42:31.962188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fac2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4337716102600098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:42:41.960599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4755001068115234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:43:02.820618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:43:12.022659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5470030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1334354877471924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:43:22.107198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5541970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:43:32.123365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4263927936553955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:43:42.176592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4512231349945068 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:44:03.021133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55469d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55469d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55469d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:44:12.332605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3624475002288818 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:44:22.466936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:44:32.439469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4505774974822998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:44:42.471782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4799597263336182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:45:03.238682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:45:12.564457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.338608980178833 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:45:22.665130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54afa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:45:32.667950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.435272455215454 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:45:42.706140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4452061653137207 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:46:02.284843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5572990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:46:11.830483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3424811363220215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:46:21.861178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:46:31.902601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ff90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.432305097579956 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:46:41.926932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4716315269470215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:47:02.819160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:47:12.099507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.361107587814331 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:47:22.103576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:47:32.114204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4136548042297363 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:47:42.127263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454336166381836 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:48:02.632925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e28f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e28f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e28f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:48:12.230294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ffff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3587336540222168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:48:22.277827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcf7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcf7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcf7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:48:32.333460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4342246055603027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:48:42.390214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4340288639068604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:49:03.581028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:49:12.628384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3457069396972656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:49:22.616906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:49:32.600153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ffb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4086320400238037 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:49:42.564121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.43919038772583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:50:03.234109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:50:12.733999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3394029140472412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:50:22.747128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:50:32.765519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4172911643981934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:50:42.725153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4562082290649414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:51:02.492518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:51:11.840441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.336350440979004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:51:21.895254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:51:32.077720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ade70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3969125747680664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:51:42.050048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5494030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4641351699829102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:52:02.600839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:52:12.199114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3361291885375977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:52:22.192881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55658d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55658d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55658d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:52:32.273136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4256553649902344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:52:42.256179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4471039772033691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:53:03.075133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55099b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:53:12.491189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3352909088134766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:53:22.397708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:53:32.444734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4110016822814941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:53:42.446313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ecfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4411046504974365 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:54:03.291435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:54:12.616299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3293497562408447 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:54:22.618991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:54:32.653610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4253406524658203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:54:42.636619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.444382905960083 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:55:03.387427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:55:12.849985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.333611249923706 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:55:22.905320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:55:32.788568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4313044548034668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:55:42.855617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4590504169464111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:56:02.454807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:56:12.006849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3382923603057861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:56:22.050940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:56:32.039764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4032130241394043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:56:42.053379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4337446689605713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:57:02.882573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55948f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55948f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55948f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:57:12.292593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3427696228027344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:57:22.203721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5573a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:57:32.245159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.421055555343628 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:57:42.200870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54adab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4407927989959717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 18:59:03.567707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:59:12.531716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3451013565063477 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 18:59:22.541685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 18:59:32.549676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3994638919830322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 18:59:42.557810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4461414813995361 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:00:03.213787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:00:12.694643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553afd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3491435050964355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:00:22.731401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c19f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:00:32.718628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4130346775054932 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:00:42.751993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4719312191009521 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:01:02.538715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:01:11.873480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3332958221435547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:01:21.921491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:01:31.987549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4208686351776123 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:01:41.976467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4286630153656006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:02:02.565938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:02:12.188706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.34340500831604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:02:22.128754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:02:32.158651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.405738353729248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:02:42.303945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4398548603057861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:03:03.226847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:03:12.431017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3384034633636475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:03:22.439996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55885d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55885d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55885d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:03:32.470000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4192039966583252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:03:42.553567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4474129676818848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:04:03.386895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:04:12.799221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3350231647491455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:04:22.851536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:04:32.715122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4199085235595703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:04:42.697071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4494075775146484 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:05:02.396360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:05:11.902664
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3359992504119873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:05:21.873642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:05:31.937628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb62567b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3909728527069092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:05:41.919688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4379913806915283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:06:02.495448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:06:12.033991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f685d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3580806255340576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:06:22.123743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5542a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:06:32.136816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.421391248703003 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:06:42.098423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4458415508270264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:07:02.908907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5509a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:07:12.324212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3305537700653076 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:07:22.258944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5519910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:07:32.360795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4325006008148193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:07:42.353799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4565777778625488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:08:02.975230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55749b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:08:12.477510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5471030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3297502994537354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:08:22.531731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:08:32.507516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4268698692321777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:08:42.472787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4466261863708496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:09:03.514946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:09:12.610385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3449499607086182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:09:22.667667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:09:32.653980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550cfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4238476753234863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:09:42.644642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6191fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4471993446350098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:10:03.193474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:10:12.862216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6622590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3147010803222656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:10:22.849155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55948b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55948b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55948b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:10:32.800214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4200382232666016 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:10:42.822331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586310386657715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:11:02.633597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa25b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa25b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa25b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:11:11.965918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3365213871002197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:11:21.989847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:11:32.048884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4275941848754883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:11:41.996233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4412236213684082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:12:02.569992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:12:12.242511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3331034183502197 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:12:22.204702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:12:32.240298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4336676597595215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:12:42.237297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4389863014221191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:13:03.043808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:13:12.385633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5489030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.333918571472168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:13:22.383714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:13:32.440640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4245209693908691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:13:42.427620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.438668966293335 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:14:03.300977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:14:12.598633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3361854553222656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:14:22.659070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:14:32.668935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4128799438476562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:14:42.670267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4426918029785156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:15:02.361684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c48b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c48b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c48b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:15:11.805681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3356013298034668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:15:21.839257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:15:31.857024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54acf10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.424896478652954 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:15:41.871971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.453033208847046 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:16:02.539405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:16:12.207789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.33701753616333 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:16:22.042222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:16:31.993731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb548e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4196414947509766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:16:42.010378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.465111255645752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:17:02.709030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:17:12.221933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3320703506469727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:17:22.147259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:17:32.270104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.415431261062622 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:17:42.193940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5448030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.434624195098877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:18:02.831134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:18:12.332718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3316874504089355 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:18:22.369166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b91f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b91f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b91f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:18:32.480302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54effd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4188635349273682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:18:42.360544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.430967092514038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:19:03.288366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:19:12.470461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fa49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3359808921813965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:19:22.533327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5562970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:19:32.589963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4291391372680664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:19:42.615381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4499971866607666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:20:03.298807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:20:12.843104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3468453884124756 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:20:22.813164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55739d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:20:32.809547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4142177104949951 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:20:42.777879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4634191989898682 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:21:02.555932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:21:11.950333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.33443284034729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:21:21.946778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55739b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:21:31.953932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4092416763305664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:21:41.952032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4412474632263184 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:22:02.631286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:22:12.075649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3300096988677979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:22:22.115605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:22:32.134553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4226248264312744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:22:42.144383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4484915733337402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:23:03.015552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5515990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:23:12.328909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.335010051727295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:23:22.283491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5504870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:23:32.388686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a3070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.425321340560913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:23:42.342564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4578077793121338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:24:03.107124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:24:12.501390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3245842456817627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:24:22.504229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:24:32.576800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4276695251464844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:24:42.515954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451982021331787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:25:03.360534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:25:12.691030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.332124948501587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:25:22.734601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:25:32.755525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4184739589691162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:25:42.745331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4557297229766846 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:26:02.412178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:26:11.924647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3427364826202393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:26:21.896645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e09b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:26:31.906736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4292774200439453 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:26:41.908845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446361780166626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:27:02.667781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:27:12.015455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3127083778381348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:27:22.042799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:27:32.125930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4148335456848145 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:27:42.270918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.456641435623169 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:28:02.934153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:28:12.436847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1611285209655762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:28:22.477723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55119d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55119d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:28:32.498520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4305479526519775 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:28:42.436402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4420132637023926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:29:03.411391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:29:12.627155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.326554298400879 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:29:22.617846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:29:32.579267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4252078533172607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:29:42.636668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4560813903808594 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:30:03.319739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:30:12.794013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3975448608398438 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:30:22.826178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:30:32.807227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3364460468292236 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:30:42.802139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5446030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3681154251098633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:31:02.563389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:31:12.070575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2477867603302002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:31:22.015435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5ff7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ff7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ff7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:31:32.179522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4249746799468994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:31:42.152132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4584193229675293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:32:02.809369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:32:12.275154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2679429054260254 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:32:22.306512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55459b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55459b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:32:32.339962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4099953174591064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:32:42.319715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4218599796295166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:33:03.023390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:33:12.556207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54defb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1367595195770264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:33:22.516464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:33:32.486613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4228949546813965 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:33:42.507960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4507372379302979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:34:03.406123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556aad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:34:12.617504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5511070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3221228122711182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:34:22.647636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5562930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:34:32.666674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4154584407806396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:34:42.712296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4468889236450195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:35:02.475371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5553930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:35:11.847243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1432385444641113 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:35:21.916236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:35:31.906978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4117190837860107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:35:41.889151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.449195384979248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:36:02.515673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:36:12.012255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a50d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.135697364807129 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:36:22.109794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:36:32.110751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4161415100097656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:36:42.055201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4365508556365967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:37:02.836131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:37:12.151265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6560f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.152803659439087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:37:22.219066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:37:32.359430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4341087341308594 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:37:42.287808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4671881198883057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:38:02.924718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:38:12.386180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1363751888275146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:38:22.485493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:38:32.478154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ae070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4072115421295166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:38:42.436890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4315743446350098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:39:03.685302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5570990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:39:12.660754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3334729671478271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:39:22.741773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55428b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55428b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55428b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:39:32.630193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.434274673461914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:39:42.607462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4425125122070312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:40:03.246980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:40:12.719559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.135998249053955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:40:22.717311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:40:32.808673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fbef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4102928638458252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:40:42.768562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4514107704162598 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:41:02.755190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:41:11.969813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1861598491668701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:41:21.974345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:41:32.077140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4066174030303955 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:41:42.026028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4477193355560303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:42:02.615022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:42:12.142182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1561596393585205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:42:22.186015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:42:32.213271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4339478015899658 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:42:42.199020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4216785430908203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:43:02.946795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5569970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:43:12.346288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.142561674118042 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:43:22.340275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:43:32.438017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4308147430419922 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:43:42.375011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4568753242492676 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:44:02.991162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:44:12.597697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3222577571868896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:44:22.511122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55289b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55289b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55289b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:44:32.695846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4322724342346191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:44:42.684436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4527020454406738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:45:02.439518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:45:11.810245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1404767036437988 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:45:21.825559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:45:31.825016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.430536985397339 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:45:41.829165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.453902006149292 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:46:02.431455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54af930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:46:12.046959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1410977840423584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:46:22.004701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55899d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:46:32.020928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4282352924346924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:46:42.076217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4540722370147705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:47:02.997865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aea30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:47:12.193611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ad050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1452560424804688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:47:22.295367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:47:32.401632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.433903694152832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:47:42.278904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4635283946990967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:48:02.983988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:48:12.457739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547f030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1648333072662354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:48:22.432096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55769f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55769f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55769f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:48:33.092290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.416215181350708 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:48:42.420685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61d3790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586024284362793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:49:03.385510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:49:12.544446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3595457077026367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:49:25.599211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:49:32.590004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5437030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4590537548065186 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:49:42.600330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4822466373443604 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:50:03.076987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:50:12.817959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55480b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.416595458984375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:50:22.715440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55989b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55989b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55989b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:50:32.729865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3665764331817627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:50:42.736369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f7f530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3616695404052734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:51:02.752588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:51:11.954791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3392956256866455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:51:21.989848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:51:31.992039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4270319938659668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:51:42.019838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4594175815582275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:52:02.665989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:52:12.180143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ffb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.336022138595581 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:52:22.302965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5dac9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5dac9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5dac9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:52:32.160525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4265658855438232 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:52:42.161731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4474637508392334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:53:03.000827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:53:12.393272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3541135787963867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:53:22.293350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:53:32.350030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4111120700836182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:53:42.295886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55910b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461850881576538 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:54:03.090636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:54:12.425380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3347060680389404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:54:22.412362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55835f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55835f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55835f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:54:32.473331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4248526096343994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:54:42.470532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4661474227905273 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:55:03.346116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:55:12.638286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3283398151397705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:55:22.605491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:55:32.665283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.436399221420288 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:55:42.625031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4331755638122559 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:56:03.247760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:56:12.791505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.333620548248291 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:56:23.709285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55649d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55649d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55649d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:56:32.800190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4263484477996826 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:56:42.789381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4552512168884277 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:57:02.433401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:57:11.955127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3420493602752686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:57:21.941363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:57:32.031403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4208431243896484 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:57:41.953330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4549267292022705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 19:59:03.135685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:59:12.297340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3349096775054932 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 19:59:22.352003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 19:59:32.242104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4048442840576172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 19:59:42.364610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4402265548706055 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
 val : 1 : upload photos already in processing! 
2025-12-03 20:00:05.622438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:00:22.749234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:00:32.725552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3781373500823975 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:00:54.461290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4383108615875244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:01:03.147341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:01:12.569795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3430662155151367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:01:22.585914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5518970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:01:32.571452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3452353477478027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:01:42.518703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.363457202911377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:02:03.253738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:02:12.760174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2721543312072754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:02:22.753956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:02:32.766460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5539603233337402 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:02:44.602194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2143211364746094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:03:03.296105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:03:12.686145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3392608165740967 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:03:22.710226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:03:32.706095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54afe90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3246946334838867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:03:42.774663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3563463687896729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:04:02.780447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:04:12.006117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3426744937896729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:04:22.020603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:04:32.015548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4279680252075195 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:04:42.070597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4541287422180176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:05:03.045016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:05:12.335307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1669282913208008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:05:22.254214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:05:32.291642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4146132469177246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:05:42.271658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4536757469177246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:06:02.829356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5517950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:06:12.463320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.145343542098999 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:06:22.398441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:06:32.418347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dfef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4019324779510498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:06:42.423705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55420b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4591314792633057 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:07:03.235004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5583a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:07:12.542639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1413650512695312 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:07:22.629301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:07:32.592707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daeb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4256136417388916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:07:42.607650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb546c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4637644290924072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:08:03.296053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:08:12.841847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1474528312683105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:08:22.773264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55649b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:08:32.773457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4073290824890137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:08:42.817252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4522123336791992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:09:02.883422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:09:12.007646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3359756469726562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:09:22.087742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:09:32.014874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451216459274292 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:09:42.026828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4653921127319336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:10:02.722012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:10:12.108950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.136660099029541 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:10:22.188062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5556850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:10:32.200735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5a09cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4228203296661377 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:10:42.186243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4538729190826416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:11:03.184114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:11:12.344344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d3fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2481677532196045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:11:22.463879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b49d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:11:32.354410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5568070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4005835056304932 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:11:42.452666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4501607418060303 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:12:03.061472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55328f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55328f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55328f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:12:12.542787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1466259956359863 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:12:22.621295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:12:32.609230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4199748039245605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:12:42.594230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4475398063659668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:13:03.273682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:13:12.710498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5452030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1404225826263428 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:13:22.754577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:13:32.758211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4134929180145264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:13:42.752363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4359688758850098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:14:02.561182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5510a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5510a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:14:11.925566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3223481178283691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:14:21.968176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:14:31.986707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4738469123840332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:14:41.987168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f53a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4754343032836914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:15:02.752254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:15:12.089560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1424860954284668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:15:22.141356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:15:32.267689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4436030387878418 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:15:42.117599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4713995456695557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:16:02.664806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:16:12.226009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fdfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1375153064727783 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:16:22.302675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:16:32.286055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4207561016082764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:16:42.322209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4457645416259766 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:17:05.103553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:17:12.460418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1462376117706299 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:17:22.512514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:17:32.501329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4151337146759033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:17:46.854737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.443453073501587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:18:02.515160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:18:12.029228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1412298679351807 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:18:22.074911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:18:32.087933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5ff78b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4133589267730713 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:18:42.067543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4953956604003906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:19:02.976394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:19:12.195951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2398345470428467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:19:22.306103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54daa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:19:32.301557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4243543148040771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:19:42.242989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4493608474731445 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:20:02.866634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:20:12.434167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1389875411987305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:20:22.401488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:20:32.480882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.42354416847229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:20:42.409558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4497952461242676 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:21:03.123732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:21:12.523654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1493849754333496 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:21:22.634284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55969b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55969b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:21:32.732342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446826457977295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:21:42.738555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4788422584533691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:22:02.393578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:22:11.812268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1295411586761475 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:22:21.901044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e3970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:22:31.917239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4059293270111084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:22:41.919533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4523179531097412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:23:02.765150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:23:12.081004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1410090923309326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:23:22.116360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:23:32.110260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4490725994110107 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:23:42.221418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4677598476409912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:24:03.035481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:24:12.346895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554cf10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1671497821807861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:24:22.466283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:24:32.400371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4573538303375244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:24:42.407920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4738225936889648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:25:03.279849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556d830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:25:12.501682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 val : 1 : upload photos already in processing! 
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553afd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 9.761099338531494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:25:32.553594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4207167625427246 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:25:42.556804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.456249713897705 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:26:03.040076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b98f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:26:12.654393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1323435306549072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:26:22.699293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:26:32.680439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4147346019744873 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:26:42.818773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5564fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4452579021453857 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:27:02.580923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:27:12.023258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1389012336730957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:27:21.946614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:27:32.104489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55170b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4291911125183105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:27:41.980312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4557890892028809 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:28:02.577487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:28:12.182793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ab070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1268703937530518 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:28:22.249360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:28:32.178284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 val : 1 : upload photos already in processing! 
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 10.363927602767944 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:29:03.396333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cd870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
 val : 1 : upload photos already in processing! 
2025-12-03 20:29:18.051314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.425462245941162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:29:32.351925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3524155616760254 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:29:42.306566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.490813970565796 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:30:02.851182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c98d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c98d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c98d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:30:12.542332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3580045700073242 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:30:22.401958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55529b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55529b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55529b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:30:32.398002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.429419994354248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:30:42.414110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4524474143981934 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:31:03.339379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a39f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:31:12.675206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3434395790100098 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:31:22.756348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5570970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:31:32.764245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4325778484344482 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:31:42.640607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5498f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.490159273147583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:32:03.243594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:32:12.779227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.337352991104126 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:32:22.915515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:32:32.823710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4264497756958008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:32:42.840963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5595070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4537606239318848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:33:02.701554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:33:11.966794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3410022258758545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:33:21.985030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:33:31.993698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4204087257385254 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:33:42.022181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4425938129425049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:34:02.756306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:34:12.156191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3311359882354736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:34:22.247554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:34:32.213404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4274327754974365 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:34:42.192149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461214542388916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:35:02.854950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:35:12.338165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3242297172546387 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:35:22.357496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55159f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55159f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:35:32.319892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4293591976165771 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:35:42.383946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461834192276001 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:36:02.986766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:36:12.557518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.349945306777954 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:36:22.555709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55909f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55909f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55909f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:36:32.525947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4203612804412842 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:36:42.545451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4399349689483643 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:37:03.374052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:37:12.693575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3297357559204102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:37:22.802238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:37:32.753408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4346585273742676 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:37:42.710061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4408679008483887 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:38:02.222396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:38:11.935191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5566ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3425800800323486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:38:21.811712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:38:31.825194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4105567932128906 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:38:42.754256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4329760074615479 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:39:02.999496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:39:11.935214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549bfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3326835632324219 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:39:21.957242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:39:32.228897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4148213863372803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:39:41.921247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4584555625915527 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:40:02.563863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:40:12.004379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fee90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2181689739227295 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:40:22.042338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:40:32.083022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.434706211090088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:40:42.140231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aeed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4635725021362305 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:41:02.822843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:41:12.252521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1704773902893066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:41:22.309644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:41:32.333106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ebed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4106595516204834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:41:42.358128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4427974224090576 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:42:02.995729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:42:12.488961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1542103290557861 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:42:22.559912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:42:32.543353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ffb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4289991855621338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:42:42.568396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448617696762085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:43:03.415024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55569d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55569d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55569d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:43:12.754100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3141076564788818 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:43:22.743889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:43:32.833109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fefd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4270617961883545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:43:42.846647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4496150016784668 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:44:02.726959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:44:11.998703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.341771125793457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:44:22.094987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:44:32.057062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4076752662658691 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:44:42.122971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4435513019561768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:45:03.090109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:45:12.296100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3175067901611328 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:45:22.266247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:45:32.305937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4316329956054688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:45:42.294825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.452847957611084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:46:02.951593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:46:12.411696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.149475336074829 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:46:22.511300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5502970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:46:32.471701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3917410373687744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:46:47.320143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2920620441436768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:47:03.140200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:47:12.493144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1483781337738037 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:47:22.470866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55039f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:47:32.579544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.413367509841919 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:47:42.601075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.457062005996704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:48:03.144176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:48:12.710334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1433260440826416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:48:22.818332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:48:32.841585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4245562553405762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:48:42.751816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.108614206314087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:49:02.840154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:49:11.901740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.328935146331787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:49:21.909377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:49:31.988088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4110066890716553 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:49:41.925438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4466578960418701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:50:02.563327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:50:12.094727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1821084022521973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:50:22.127332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:50:32.137979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.436669111251831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:50:42.105520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4294400215148926 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:51:03.092565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:51:12.298371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1469817161560059 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:51:22.297653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:51:32.276772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.426224946975708 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:51:42.281799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.445807933807373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:52:02.896773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:52:12.380368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1489250659942627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:52:22.427921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c88d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:52:32.442998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4199800491333008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:52:42.495275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54db050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.43888258934021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:53:03.318911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:53:17.042284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.37160325050354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:53:22.709669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:53:32.702345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ace90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4223973751068115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:53:42.706600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.458733320236206 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:54:02.594565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5598970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:54:11.892989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.329655647277832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:54:21.900254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5574970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:54:31.955484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ae50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4590423107147217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:54:41.898231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4647102355957031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:55:02.665575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:55:11.989747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f40b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1357011795043945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:55:22.057349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:55:32.196759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cbfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4288475513458252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:55:42.078037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4679598808288574 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:56:02.741654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:56:12.140926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1380603313446045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:56:22.217108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:56:32.241251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4107930660247803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:56:42.291990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4843964576721191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:57:03.170742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:57:12.341829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1318070888519287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:57:22.511903
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5522590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:57:32.496954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4122648239135742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:57:42.498163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.438694953918457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 20:59:02.970535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 20:59:11.799154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.365260362625122 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 20:59:21.827515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dc590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 20:59:44.062283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
2025-12-03 20:59:44.085141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb545d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5504331588745117 secondes ---
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.549328088760376 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:00:02.700389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5547a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:00:12.238030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1495165824890137 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:00:22.167013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:00:32.175269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4439036846160889 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:00:42.191668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4811744689941406 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:01:03.084642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:01:12.290323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f077b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.128450870513916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:01:22.321473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:01:32.452826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446615219116211 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:01:42.449811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4721226692199707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:02:05.622347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:02:15.203501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fce30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1467936038970947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:02:25.280775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:02:35.329906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446864366531372 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:02:45.257757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4739630222320557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:03:03.039663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:03:12.372363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1398918628692627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:03:22.423362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:03:32.480772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4244956970214844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:03:42.467512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4853947162628174 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:04:03.320883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:04:12.584267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.334132432937622 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:04:22.625643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:04:32.642532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4187381267547607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:04:42.616050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.459862470626831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:05:03.459676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:05:12.733877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1349620819091797 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:05:22.796426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcd7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcd7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fcd7f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:05:32.793320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.520158052444458 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:05:42.808627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554efb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.444223403930664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:06:02.393274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:06:11.915098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555def0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.126296043395996 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:06:22.041684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5b3a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b3a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b3a8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:06:32.013503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f7c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.417320728302002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:06:42.042332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5460030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4426395893096924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:07:02.812715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:07:12.170809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1358141899108887 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:07:22.226687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:07:32.240419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4352567195892334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:07:42.257689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5585050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4589965343475342 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:08:02.846627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:08:12.420172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1411371231079102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:08:22.606945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:08:32.552493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4320261478424072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:08:44.409099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3831429481506348 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:09:03.539788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:09:12.588600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.210096836090088 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:09:22.590718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:09:32.587624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4407334327697754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:09:42.777503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.681031227111816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:10:02.338710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5597850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:10:11.908976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1472718715667725 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:10:21.933939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:10:31.982367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4523272514343262 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:10:41.926192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ac050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.444901704788208 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:11:02.785730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:11:12.033978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 291, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:11:22.046815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5575a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:11:32.034662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5472030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1469097137451172 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:11:42.170915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4462995529174805 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:12:02.787957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:12:12.241472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3438053131103516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:12:22.227353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:12:33.578680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3406095504760742 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:12:42.230115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3540363311767578 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:13:03.250612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:13:12.469323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.3252220153808594 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:13:22.468217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55489f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:13:32.613720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7454826831817627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:13:45.437914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4498193264007568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:14:05.640626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:14:12.432822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3447446823120117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
 val : 1 : upload photos already in processing! 
2025-12-03 21:14:29.328173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:14:42.476591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5446030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.477968454360962 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:15:05.021045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:15:14.130946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.153188705444336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:15:24.079902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:15:34.814633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4386157989501953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:15:45.961895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4683761596679688 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:16:02.444030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:16:12.013497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1476283073425293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:16:22.044836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5532a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:16:32.055873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ad070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4365673065185547 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:16:42.105007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4490153789520264 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:17:02.839053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:17:12.228974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1417102813720703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:17:22.336631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55309f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:17:32.289139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c4f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4323627948760986 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:17:46.313824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4536364078521729 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:18:02.876497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:18:12.505959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1469762325286865 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:18:22.480501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:18:32.487579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f29ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4257099628448486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:18:42.470414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.441422939300537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:19:03.491343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55238d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55238d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55238d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:19:12.603113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3663215637207031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:19:24.513807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:19:32.666388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.431368112564087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:19:42.627310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6561fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4686517715454102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:20:03.191879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:20:12.740789
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5489030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.142594814300537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:20:25.690779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:20:32.787470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461801528930664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:20:50.611465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4351933002471924 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:21:02.406050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:21:11.833213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f1f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1465981006622314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:21:21.857546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:21:31.897323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54abef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4670312404632568 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:21:41.895125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5031886100769043 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:22:02.572557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:22:12.031227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1445765495300293 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:22:22.110661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:22:32.067757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.462402582168579 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:22:42.132475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5054960250854492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:23:02.974979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:23:12.250784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5dfc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1347119808197021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:23:22.283792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:23:32.303729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4425647258758545 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:23:42.273284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4675617218017578 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:24:03.070758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:24:12.510756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3607919216156006 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:24:22.391399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c7a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:24:32.433014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4734070301055908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:24:42.444869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4755823612213135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:25:03.335539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:25:12.527196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2023484706878662 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:25:22.630539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5533a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:25:33.637173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.48423171043396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:25:42.576820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5011570453643799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:26:03.581944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:26:13.263829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.38740873336792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:26:23.159557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:26:33.299456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.303640842437744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:26:43.195651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4832148551940918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:27:02.955586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:27:12.297190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.189687967300415 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:27:22.258453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:27:32.296756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5579ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.834583282470703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:27:42.344124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4961814880371094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:28:02.783672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:28:12.466164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ee30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2118592262268066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:28:30.077019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55419d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:28:35.093784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b2fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.493649959564209 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:28:42.614550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4979925155639648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:29:03.859501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:29:12.769660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3558778762817383 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:29:22.990659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55619d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55619d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:29:32.847821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4237091541290283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:29:43.001277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551df70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.466325283050537 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:30:02.513681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:30:12.126776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f17b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1412172317504883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:30:22.167603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:30:32.248425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4778201580047607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:30:42.196573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4829130172729492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:31:03.059974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:31:12.355301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1458289623260498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:31:22.374078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:31:32.393013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4559974670410156 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:31:42.363525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4910306930541992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:32:02.970121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5542510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:32:12.467735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1588141918182373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:32:22.541571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:32:32.524131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4682810306549072 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:32:42.685493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5462030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4984264373779297 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:33:02.339887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:33:11.869070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.136451005935669 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:33:21.864193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:33:31.853328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.422969102859497 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:33:41.862641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4557957649230957 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:34:02.764098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:34:12.008769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549bfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.136171579360962 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:34:22.008171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5583930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5583930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:34:32.042782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4726827144622803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:34:42.033806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4997215270996094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:35:02.889006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:35:12.093136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5569f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1467175483703613 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:35:22.162872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:35:32.149632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4275293350219727 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:35:42.301806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ae050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4477331638336182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:36:02.926496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:36:12.419276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5543070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2430689334869385 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:36:22.560673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:36:36.194635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5561ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.006521224975586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:36:42.467837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5043511390686035 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:37:03.284902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5578930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:37:12.657174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5525030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3576579093933105 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:37:25.526347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55548f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55548f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55548f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:37:32.590333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5499ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3557543754577637 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:37:42.535655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3905055522918701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:38:03.173031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ea9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:38:12.700027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1363255977630615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:38:22.784930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:38:40.281532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5122685432434082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:38:42.867580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.526465654373169 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:39:02.882794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:39:12.084557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.452906847000122 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:39:22.022091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:39:31.974646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55740b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3555865287780762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:39:48.191265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4994964599609375 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:40:02.865179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:40:12.270930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3817949295043945 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:40:22.344842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55258f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55258f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55258f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:40:32.320256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3821640014648438 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:40:42.278525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4112434387207031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:41:03.062586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55338f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55338f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55338f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:41:12.469878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bbed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1535472869873047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:41:22.535168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e18f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:41:32.623732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4381110668182373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:41:42.549261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4579756259918213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:42:03.168936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:42:12.697564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.140925645828247 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:42:22.709497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:42:32.697317
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.411679744720459 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:42:42.766143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.451287031173706 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:43:02.512834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:43:11.929463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2799906730651855 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:43:21.921220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5586950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:43:31.912779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fd070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4255850315093994 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:43:41.947847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c40b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4431533813476562 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:44:02.925295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:44:12.114914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3747007846832275 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:44:22.252220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:44:32.140125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4855077266693115 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:44:42.213260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.541165828704834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:45:02.951040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:45:12.292768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1520085334777832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:45:22.389218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:45:32.492036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4855141639709473 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:45:42.374248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.522592306137085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:46:02.974308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:46:12.499175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.149688959121704 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:46:22.615852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:46:32.572891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4926283359527588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:46:42.542400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.507474422454834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:47:03.140569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:47:12.677503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1348576545715332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:47:22.722188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:47:32.699005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544e030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.454254150390625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:47:42.760597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4798493385314941 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:48:02.374544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:48:11.871901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1470372676849365 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:48:21.904102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:48:46.725091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
2025-12-03 21:48:46.725091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.334800958633423 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.3361122608184814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:49:02.689112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
 val : 1 : upload photos already in processing! 
2025-12-03 21:49:20.697474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4528477191925049 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:49:31.855816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4552617073059082 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:49:41.943289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.459043264389038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:50:02.581493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:50:13.965803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.212080717086792 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:50:22.157834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551dab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:50:32.113800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.483003854751587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:50:42.204734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5428829193115234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:51:03.032914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:51:12.406300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551df70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.27565598487854 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:51:22.305061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:51:32.423930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4901185035705566 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:51:42.426261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555be70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5198595523834229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:52:03.090013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:52:12.536663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5504ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2046124935150146 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:52:22.714368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:52:32.657817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.485889196395874 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:52:42.559052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61d6fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4980432987213135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:53:03.340562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:53:12.653485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.4291296005249023 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:53:22.669817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:53:32.717919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.485093355178833 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:53:42.888759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cdff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5192570686340332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:54:05.374689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:54:12.017859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4846651554107666 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:54:22.091245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55638b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55638b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55638b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:54:32.031682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.483102798461914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:54:41.995741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ad710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4127280712127686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:55:02.973498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:55:12.243176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549de90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2136130332946777 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:55:22.264414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:55:32.264234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.479240894317627 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:55:42.361916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552dfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5128157138824463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:56:03.002717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb61fd790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61fd790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61fd790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:56:12.477303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1505475044250488 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:56:22.513798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:56:32.531837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4818975925445557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:56:42.540242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5371217727661133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:57:03.353342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:57:12.647917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556ded0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1369571685791016 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:57:22.687193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:57:32.784482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4799060821533203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:57:42.713938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.505932331085205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 21:59:02.869914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:59:12.025997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55080b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3504002094268799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 21:59:22.195342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 21:59:32.076764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4320731163024902 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 21:59:42.154183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553b090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4693632125854492 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:00:02.742625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:00:12.277982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5458030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.144129753112793 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:00:22.400608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:00:32.301007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4715344905853271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:00:42.302844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.512727975845337 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:01:03.134287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:01:12.455604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1455390453338623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:01:22.467656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:01:32.496897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558eff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4746432304382324 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:01:42.476204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5160465240478516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:02:03.012240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55578f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:02:12.595047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2848083972930908 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:02:22.688857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e4a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:02:32.662607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.495530128479004 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:02:42.650709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5134408473968506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:03:03.373095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55428f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55428f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55428f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:03:12.848142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1531727313995361 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:03:22.914079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:03:32.814113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4138648509979248 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:03:42.811109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d20b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4483819007873535 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:04:02.696880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:04:12.087734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.367194414138794 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:04:22.012465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:04:31.988965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552f0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.431025743484497 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:04:41.998496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.477651834487915 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:05:02.804080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:05:12.087509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1513056755065918 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:05:22.241897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:05:32.179393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4316983222961426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:05:42.182718
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4500362873077393 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:06:02.792615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55779f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55779f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55779f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:06:12.268381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1378183364868164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:06:22.462894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556c850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:06:32.353289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4273159503936768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:06:42.372347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fce30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4543213844299316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
 val : 1 : upload photos already in processing! 
2025-12-03 22:07:11.188126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:07:32.535098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3702304363250732 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:07:42.479185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4015858173370361 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:08:03.119113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:08:12.721083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c5ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.133873462677002 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:08:22.700031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55789d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55789d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55789d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:08:32.733720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4155356884002686 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:08:42.789017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4455385208129883 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:09:02.912948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55349f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55349f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55349f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:09:11.935635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3995118141174316 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:09:22.045006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:09:31.979053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553cff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.441551923751831 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:09:42.034347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4530079364776611 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:10:02.678376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:10:12.196528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1470773220062256 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:10:22.189526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:10:32.214157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5061836242675781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:10:44.575400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5127527713775635 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:11:03.283653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55148b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55148b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55148b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:11:12.630628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.134342908859253 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:11:22.791446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:11:32.700758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.484224796295166 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:11:42.691862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5166902542114258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:12:02.414298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55268b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55268b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55268b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:12:11.791322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1456780433654785 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:12:21.932531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c08b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:12:31.877652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4988725185394287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:12:41.876106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5400607585906982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:13:02.632476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:13:12.008392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a5070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1483030319213867 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:13:22.051157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:13:32.016797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4857063293457031 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:13:42.557800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55860d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5258333683013916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:14:03.231785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:14:12.800144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3808631896972656 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:14:22.755689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5563a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:14:32.866666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bce70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4826624393463135 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:14:42.877298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.487607479095459 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:15:02.762077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55109b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55109b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55109b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:15:12.060948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5081145763397217 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:15:22.143666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:15:32.204318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.431518316268921 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:15:42.174124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f6050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4026479721069336 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:16:02.859089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5582990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:16:12.327371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb544b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1423637866973877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:16:22.393983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:16:32.367150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5588730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4619405269622803 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:16:42.543995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.512603759765625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:17:03.388515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:17:12.710637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1330504417419434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:17:22.734733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ac9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:17:32.739514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.430462121963501 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:17:42.680506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4534428119659424 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:18:02.259424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5527930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:18:11.787642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5481030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1358864307403564 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:18:21.865592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:18:31.918328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54baed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4373810291290283 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:18:41.891287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4703667163848877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:19:03.076110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:19:12.010570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5503050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1466515064239502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:19:22.067318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:19:32.104677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4531049728393555 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:19:42.082399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4574077129364014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:20:02.679884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5598970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:20:12.176245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1418108940124512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:20:22.230215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:20:32.258348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5533030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4562687873840332 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:20:42.235272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4568870067596436 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:21:03.109200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:21:12.344444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1624319553375244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:21:22.387669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:21:32.504735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55af050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4355597496032715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:21:42.470999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5512050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4332103729248047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:22:03.071575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:22:12.567209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.15614914894104 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:22:22.650336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5539910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:22:32.660234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5467030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4140000343322754 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:22:42.767191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4706501960754395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:23:02.639502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5592950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5592950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:23:11.879411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1493234634399414 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:23:22.110835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eca90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:23:31.931242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.408202886581421 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:23:41.973413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55b3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4392051696777344 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:24:02.732217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:24:12.270444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3583416938781738 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:24:22.156705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5593930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:24:32.121899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4309778213500977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:24:42.161300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f94890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4681048393249512 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:25:03.024241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:25:12.248091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540eb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.14438796043396 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:25:22.292958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:25:32.355451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5560070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.441375970840454 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:25:42.399819
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4692561626434326 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:26:03.030097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:26:12.534521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1556189060211182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:26:22.604017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:26:32.566083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4332897663116455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:26:42.603385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54be070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.456195592880249 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:27:03.400869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5516990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:27:12.721521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554eed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.150646448135376 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:27:22.763562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55959f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:27:32.785185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ccfb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4378457069396973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:27:42.760980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4571022987365723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:28:02.372551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:28:11.881456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1381938457489014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:28:21.960290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55615d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55615d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55615d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:28:32.000336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5545070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4212234020233154 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:28:41.957305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5554070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4321980476379395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:29:03.070113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5580a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:29:12.266323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3557703495025635 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:29:22.047118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:29:32.135206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54de050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.455698013305664 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:29:42.236602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.494060754776001 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:30:02.771145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:30:14.940869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 7.39752197265625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:30:32.405935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4540090560913086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:30:42.373450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551b030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4945743083953857 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:31:03.223207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:31:12.601617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.151296615600586 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:31:22.604081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5582930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:31:32.540627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.444260835647583 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:31:42.546503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.482522964477539 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:32:03.162323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55207f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55207f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55207f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:32:12.649942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1446197032928467 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:32:22.689756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55279d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55279d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:32:32.729635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446850061416626 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:32:42.738116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5101275444030762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:33:02.558336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e8990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:33:11.835048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f7e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1721434593200684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:33:21.875093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:33:31.913042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4398977756500244 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:33:41.978430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cc050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4672718048095703 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:34:02.750778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:34:12.308415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3522305488586426 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:34:22.131346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:34:32.146924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4432311058044434 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:34:42.137470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5552050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.439680576324463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:35:03.071437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:35:12.351990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.187856912612915 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:35:22.386561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f31590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f31590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f31590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:35:32.302818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a5050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.455904245376587 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:35:42.310316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4960074424743652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:36:02.862941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:36:12.386899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1409053802490234 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:36:22.452501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5f877d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f877d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f877d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:36:32.616228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5457030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4628381729125977 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:36:42.631416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.487246036529541 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:37:03.450085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb559b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:37:12.739425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5557070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.138216495513916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:37:25.390902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550b910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:37:34.056268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:37:42.945764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4475765228271484 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:38:02.473067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:38:12.023827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5465030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4274358749389648 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:38:25.292258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:38:32.062553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5441030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.348823070526123 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:38:42.038087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3963391780853271 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:39:03.010481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55129d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:39:12.285643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550dff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3580005168914795 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:39:22.373922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:39:32.267633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5520070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4476890563964844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:39:56.939537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5578050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3778297901153564 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:40:02.619805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:40:12.255192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4579660892486572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:40:22.240580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:40:32.118117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54da030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4441556930541992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:40:42.161150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5519050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 18.881601810455322 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:41:02.763218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:41:12.174837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1514332294464111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:41:22.221275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:41:32.208111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4559617042541504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:41:42.180186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5029559135437012 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:42:02.801990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:42:12.312884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5546050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.140821933746338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:42:22.306391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:42:32.381934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4081382751464844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:42:42.389909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551a050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4499759674072266 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:43:03.243462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:43:12.481038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1472818851470947 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:43:22.566561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:43:32.591452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c0030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.425266981124878 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:43:42.603965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4464383125305176 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:44:03.416862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:44:12.742012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3605687618255615 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:44:22.779284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:44:32.774959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556dfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4567904472351074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:44:42.777790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d6090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4785728454589844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:45:02.562660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55979d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55979d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:45:11.972220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54beed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1609020233154297 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:45:21.984429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:45:31.957947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fc090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4194390773773193 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:45:42.054227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.452890157699585 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:46:02.660216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:46:12.153882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6577f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1387784481048584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:46:22.223161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:46:32.238927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4468309879302979 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:46:42.237270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4500524997711182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:47:02.920075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552c510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552c510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:47:12.442974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.156494140625 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:47:22.456932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54caa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54caa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54caa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:47:32.477127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5481030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4353199005126953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:47:42.444556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5531030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4403650760650635 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:48:03.082179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55139b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:48:12.530051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.143214464187622 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:48:22.610957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55699d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:48:32.722935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4211397171020508 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:48:42.728247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5487030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4495460987091064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:49:02.593397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:49:11.927536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3524422645568848 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:49:21.887553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:49:31.864991
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550a070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.434511661529541 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:49:41.929643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4586305618286133 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:50:02.637775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:50:12.094759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.325294017791748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:50:22.125002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:50:32.097986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.353250503540039 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:50:42.057294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556a870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3978805541992188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:51:02.910252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:51:12.245571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e1fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1402206420898438 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:51:22.333595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55069d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55069d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55069d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:51:32.349440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4234473705291748 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:51:42.359414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb559e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.443161964416504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:52:02.902511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:52:12.493259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5508050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1421990394592285 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:52:22.591477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55198d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55198d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55198d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:52:32.569205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4559242725372314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:52:42.560681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573e70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.490222454071045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:53:03.342936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55688f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55688f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55688f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:53:12.754396
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1387896537780762 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:53:22.741278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:53:32.763245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2290146350860596 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:53:42.725642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4590647220611572 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:54:02.577962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:54:11.885305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2477302551269531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:54:21.905979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:54:31.863014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a2ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4566447734832764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:54:41.867537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.450531244277954 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:55:02.789951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:55:14.984134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.148484468460083 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:55:22.082336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5502af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:55:32.075229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5528030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4112865924835205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:55:42.120095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4476149082183838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:56:02.711605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:56:12.390411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5513070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4531219005584717 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:56:22.293937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:56:32.228066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f3fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3396234512329102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:56:42.352559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3934543132781982 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:57:03.319437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:57:12.543212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1503658294677734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:57:22.603458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55039b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:57:32.673608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fffd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.432532548904419 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:57:42.665155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.462519884109497 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 22:59:02.930556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a8530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:59:11.918764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5589ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3349149227142334 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 22:59:22.011489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 22:59:31.981148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555e0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4712495803833008 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 22:59:42.023564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5496030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.505573034286499 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:00:02.558229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55189f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:00:12.104682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1447334289550781 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:00:22.145110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:00:32.209282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5505b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4209718704223633 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:00:42.204485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557df10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.464869737625122 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:01:02.954420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:01:12.362655
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1520013809204102 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:01:22.387569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:01:32.398293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447145700454712 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:01:44.497416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ff070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4667458534240723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:02:03.015405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ce590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:02:12.577375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1478981971740723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:02:22.710197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55569d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55569d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55569d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:02:32.681990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.429605484008789 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:02:42.692696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4539916515350342 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:03:02.562765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:03:11.839888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554ffb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1460371017456055 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:03:23.698350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5558a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:03:32.491844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5b27890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4266843795776367 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:03:41.870693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.488621473312378 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:04:02.830051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:04:12.036595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3237295150756836 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:04:22.149764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54aa950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:04:38.416282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543d030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4442379474639893 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:04:42.100990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55a60b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4991002082824707 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:05:02.812642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:05:12.212583
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.594059944152832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:05:30.275608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a5a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:05:32.223237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5439030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4220266342163086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:05:42.334835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5530050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448706865310669 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:06:03.447312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:06:12.458918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55aa050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.247443199157715 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:06:22.441708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5577930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:06:32.494780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5597070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.898252248764038 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:06:42.530296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.845646142959595 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:07:04.267597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:07:12.607741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bfef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6758089065551758 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:07:22.655181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:07:34.053844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb61ea7b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3150300979614258 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:07:44.086627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5556050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3588855266571045 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:08:02.817762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f28b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:08:12.272116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a4fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1480600833892822 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:08:22.422790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5541830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5541830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:08:32.435832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4364502429962158 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:08:42.332405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4536776542663574 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:09:03.603499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5596950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:09:12.560254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ae070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3477146625518799 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:09:22.563877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:09:35.040511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558bfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4338569641113281 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:09:42.530203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556c090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.464648962020874 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:10:03.120624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55319f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:10:12.686908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3265209197998047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:10:22.720515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b6870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:10:32.816570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4263560771942139 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:10:42.675546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.446652889251709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:11:02.558250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:11:17.062224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5573ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.317579746246338 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:11:21.775013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:11:31.863386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4353997707366943 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:11:41.859493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb623f750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4454457759857178 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:12:02.574382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5599a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5599a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:12:12.102925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5551050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3196783065795898 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:12:22.031751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55578b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55578b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55578b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:12:32.056372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4254066944122314 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:12:42.031856
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4484455585479736 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:13:02.801954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f5530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:13:12.302095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cced0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1722795963287354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:13:22.178864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:13:32.206447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5522fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4343953132629395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:13:42.179358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55ac0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.461472511291504 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:14:02.900831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:14:14.615891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5493030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3425822257995605 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:14:22.339687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:14:32.352088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4236524105072021 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:14:42.327769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551fed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.5122437477111816 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:15:03.093996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:15:12.579284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.1642935276031494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:15:22.442704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55479b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:15:36.080959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b7ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.000128269195557 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:15:42.603345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4612343311309814 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:16:03.165178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:16:17.295574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555f050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3452155590057373 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:16:22.692077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5538a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:16:32.783555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f0050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.332029104232788 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:16:42.722509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3540360927581787 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:17:02.628997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:17:11.967332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5584fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1926279067993164 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:17:21.978967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ca8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:17:31.982561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4220101833343506 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:17:41.982973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.440659999847412 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:18:02.605056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:18:12.886122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cf030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.163872480392456 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:18:22.151956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c59f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:18:32.182397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d2050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.421262264251709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:18:42.116415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5567050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4557268619537354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:19:03.319229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:19:12.287259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3460500240325928 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:19:25.009126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb556b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:19:32.280453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4322137832641602 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:19:42.279904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4493720531463623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:20:02.905825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554d9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:20:12.492217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d4f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.332390546798706 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:20:22.474612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552ea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:20:32.478894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4159305095672607 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:20:42.450050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551c070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4626414775848389 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:21:03.299970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55709f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:21:12.623687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3252196311950684 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:21:22.602625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b99d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:21:32.612625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4261023998260498 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:21:42.620323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5582050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 6.239675998687744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:22:03.252016
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5565890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:22:12.749082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3367748260498047 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:22:22.783046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:22:32.798720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5483030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.433480978012085 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:22:42.796273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ec030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4685804843902588 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:23:02.630232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:23:12.029691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557c050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3399059772491455 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:23:21.942190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:23:31.966693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5577050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4230034351348877 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:23:41.958259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b5fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4465546607971191 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:24:02.817170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5501a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5501a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:24:12.074446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5527030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.331364631652832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:24:22.113828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:24:32.139455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.421302080154419 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:24:42.100156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5555ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4567193984985352 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:25:02.979717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55019b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55019b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55019b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:25:12.280864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5565b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2770607471466064 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:25:22.274700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:25:32.277331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb547c030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4433748722076416 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:25:42.344941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5497030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4565224647521973 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:26:03.033550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:26:12.488109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553aed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2484335899353027 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:26:22.508951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5563990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5563990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:26:32.473539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb551bed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.416186809539795 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:26:42.521930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4736032485961914 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:27:03.279152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55599f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55599f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:27:12.608223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c2070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1649880409240723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:27:23.702673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:27:32.679325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4275627136230469 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:27:42.655323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558aff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4526350498199463 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:28:02.104764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:28:11.775243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5534050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.7227652072906494 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:28:21.786160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:28:31.791917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5523fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4185104370117188 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:28:41.810286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5571050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4692246913909912 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:29:03.813777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:29:12.814784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5524fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3474400043487549 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:29:22.742934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:29:32.877562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e7030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.423604965209961 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:29:42.922688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fb070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.1020679473876953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:30:02.476715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:30:12.021045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5587070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1484830379486084 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:30:22.214906
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:30:32.069129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4321463108062744 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:30:42.167681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4503872394561768 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:31:03.067162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55368d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55368d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55368d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:31:12.348346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3243577480316162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:31:22.292895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:31:32.386641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4235384464263916 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:31:42.434579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5593050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.445781946182251 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:32:03.021988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:32:12.571646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1463375091552734 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:32:22.647759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5548590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5548590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:32:32.639456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ef050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.409252643585205 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:32:42.651065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.45231294631958 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:33:02.404565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:33:11.787783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555fe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.148941993713379 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:33:21.889880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:33:31.883041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dd030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4044179916381836 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:33:41.881040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553be90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4419655799865723 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:34:02.706314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55348f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55348f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55348f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:34:12.003297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3302967548370361 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:34:22.081064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:34:32.130705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b3fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4099135398864746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:34:42.041099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5502030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.708278179168701 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:35:02.972236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55319f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55319f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:35:12.200278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b1030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1765613555908203 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:35:22.225868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:35:32.353197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b4ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.415081262588501 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:35:42.331593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5518ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.424191951751709 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:36:02.921602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5515870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:36:12.416867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555ea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.149564266204834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:36:22.472891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:36:32.484403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4213464260101318 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:36:42.462136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bb090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.447098731994629 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:37:03.439507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:37:18.309063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fbed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2840352058410645 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:37:22.632444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:37:47.283872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5452030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5196256637573242 secondes ---
2025-12-03 23:37:47.302307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5576050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5747241973876953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:38:02.765598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb553d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:38:12.348398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54fa070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.134666919708252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:38:22.376908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:38:32.326244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb550bff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4149479866027832 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:38:42.450864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5fde430>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4453158378601074 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:39:03.505548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:39:12.642829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5500ef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3469035625457764 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:39:22.560175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55188f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55188f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55188f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:39:32.630955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5570090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.470881462097168 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:39:42.700320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.5002555847167969 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:40:02.345360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ae9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:40:11.820355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5574070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1431324481964111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:40:21.876911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:40:31.857825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f2e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4088680744171143 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:40:41.844085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5506050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4657132625579834 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:41:02.626313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb552a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:41:12.011705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.143867015838623 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:41:22.247721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54eaa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:41:32.049673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.432157278060913 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:41:42.045740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54cce70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.458177089691162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:42:02.683539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:42:12.194114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558df90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1464989185333252 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:42:22.206337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55208d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55208d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55208d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:42:32.192974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5f5a490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4319791793823242 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:42:42.207380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557e050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4444050788879395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:43:02.918590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55869d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:43:12.307522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ab030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.654985189437866 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:43:22.419976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55739f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:43:32.368340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bf090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4310030937194824 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:43:42.403802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb558b050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.1860923767089844 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:44:03.239859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:44:12.690516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54efe70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.335768222808838 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:44:22.628942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5517890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5517890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:44:32.643920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5586050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.425128698348999 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:44:49.639878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb6501f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3729140758514404 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:45:03.413910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:45:12.946551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5bb1850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2528433799743652 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:45:22.821700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:45:32.917191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5509ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4165711402893066 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:45:42.804283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4263079166412354 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:46:02.398387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54bc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:46:16.061989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5540ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1495301723480225 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:46:21.987523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5550a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:46:31.984385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5526070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4061741828918457 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:46:42.019551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5581070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.45420241355896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:47:02.843957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5549990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5549990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:47:12.218976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb555d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.138597011566162 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:47:22.191697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55899f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:47:32.206009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4152061939239502 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:47:42.182759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5537050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4495289325714111 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:48:02.800975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5598a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5598a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:48:12.311242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557d050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1421637535095215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:48:22.334818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5591970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5591970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:48:32.378360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c9ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4369635581970215 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:48:42.336334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5507050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4704604148864746 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:49:03.283733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:49:12.657918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ba050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.3377306461334229 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:49:24.373468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5536930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5536930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:49:33.067510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4127750396728516 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:49:42.553393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5529ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4415099620819092 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:50:03.128481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:50:12.653838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb554e090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1441442966461182 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:50:22.710312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5559ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:50:32.709083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557fff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4141120910644531 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:50:45.571270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5544f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4341962337493896 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:51:03.255675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 279, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:51:12.648562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54c8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.0744788646698 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:51:30.315762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55719f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55719f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:51:32.713007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54dbff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4187650680541992 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:51:42.697079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5539fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4744408130645752 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:52:02.237260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:52:11.816753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f1b30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.148395299911499 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:52:21.862423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557cab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:52:31.850152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f8050>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4391934871673584 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:52:41.869074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4524872303009033 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:53:02.643364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54d98b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d98b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d98b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:53:11.972260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54df070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1421070098876953 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:53:22.143710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55749b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55749b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:53:32.025281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb553d070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.448293685913086 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:53:42.029202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54ebff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4839277267456055 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:54:02.844434
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55509f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:54:12.183419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54d8ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.2747480869293213 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:54:22.213111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb557f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb557f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:54:32.244445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5562ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4701435565948486 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:54:42.208855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb549efd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4743363857269287 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:55:03.047824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5542950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5542950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:55:12.332271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5553f90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.132051706314087 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:55:22.322553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5594970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5594970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:55:32.380183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5515ff0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4118754863739014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:55:42.552566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb543a030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4480082988739014 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:56:03.129750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b0110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:56:12.683692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a6030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1394202709197998 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:56:22.759305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54b59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:56:32.769764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5596070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.439962387084961 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:56:42.726074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54f9fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4402036666870117 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2
2025-12-03 23:57:02.565172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55858b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55858b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55858b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:57:11.862265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5535090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.1404500007629395 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40
2025-12-03 23:57:21.884866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : plaque_valcor_0323_03122025
 fc.token : 0e68e449101efb0f8d03d3e479d5588a
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_03122025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb55868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb55868f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 10 --only_old 1
2025-12-03 23:57:31.904812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251123 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251124 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251125 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251126 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251127 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251128 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29112025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251129 ORDER BY id_local ASC LIMIT 6;
  port_id : 29016624
  datou_current_id : 4139382
in upload_from_sqlite, uploading in 29016624
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg', '/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg', '/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_15_10596.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_25_9655.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_34_9561.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_52_55_9800.jpg
/home/pi/Desktop/images/29112025/23/52/image_29112025_23_53_04_9733.jpg
/home/pi/Desktop/images/29112025/23/53/image_29112025_23_53_15_10653.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=4139382&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54e5030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.4358787536621094 secondes ---
Start to upload photos with parameters : -n plaque_valcor_0323 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 0e68e449101efb0f8d03d3e479d5588a --datou_id=4219 --threshold=60 -j upload_by_sql -v --interval 1 --status_upload 2 --last_days 40 --only_old 1
2025-12-03 23:57:41.943207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251203 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251024 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251025 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251026 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251027 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251028 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251029 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251030 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31102025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20251031 ORDER BY id_local ASC LIMIT 6;
  port_id : 28077004
  datou_current_id : 3980708
in upload_from_sqlite, uploading in 28077004
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg', '/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_34_2915.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_37_2674.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_40_2720.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_44_3717.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_46_2937.jpg
/home/pi/Desktop/images/31102025/16/05/image_31102025_16_05_49_2661.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=0e68e449101efb0f8d03d3e479d5588a&datou_current_id=3980708&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54af030>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.463214635848999 secondes ---
